src/Traits/SerializableTrait.php
public function serialize()
    {
        $list = [];
        foreach ($this as $index => $value) {
            $list[$index] = $value;
        }
        return serialize($list);
    }
public function serialize()
    {
        $list = [];
        foreach ($this as $index => $value) {
            $list[$index] = $value;
        }
        return serialize($list);
    }
public function serialize ( ) { $ list = [ ] ; foreach ( $ this as $ index => $ value ) { $ list [ $ index ] = $ value ; } return serialize ( $ list ) ; }
serializing the data fo current object

@return string serialized data
serializing the data fo current object