src/Traits/SerializableTrait.php
public function unserialize($serialized)
    {
        $list = unserialize($serialized);
        if (is_array($list)) {
            foreach ($list as $index => $value) {
                $this[$index] = $value;
            }
        }
    }
public function unserialize($serialized)
    {
        $list = unserialize($serialized);
        if (is_array($list)) {
            foreach ($list as $index => $value) {
                $this[$index] = $value;
            }
        }
    }
public function unserialize ( $ serialized ) { $ list = unserialize ( $ serialized ) ; if ( is_array ( $ list ) ) { foreach ( $ list as $ index => $ value ) { $ this [ $ index ] = $ value ; } } }
unserialize and serialized array and make this object base on that

@param string $serialized array data
unserialize and serialized array and make this object base on that