src/Traits/SerializeTrait.php
public function serialize($keys = null)
    {
        if ($keys === null) {
            return (array)$this->getConfig('serialize');
        }

        return $this->setConfig('serialize', (array)$keys);
    }
public function serialize($keys = null)
    {
        if ($keys === null) {
            return (array)$this->getConfig('serialize');
        }

        return $this->setConfig('serialize', (array)$keys);
    }
public function serialize ( $ keys = null ) { if ( $ keys === null ) { return ( array ) $ this -> getConfig ( 'serialize' ) ; } return $ this -> setConfig ( 'serialize' , ( array ) $ keys ) ; }
Change the serialize keys

If `$keys` is NULL the current configuration is returned
else the `$serialize` configuration is changed.

@param null|array $keys Keys to serialize
@return mixed
Change the serialize keys