src/Modelling/ModelState.php
final public function exportPublicData()
    {
        $publicProperties = $this->getPublicPropertyList();

        $data = [];

        foreach ($publicProperties as $property) {
            if (isset($this[$property])) {
                $data[$property] = $this[$property];
            }
        }

        return $data;
    }
final public function exportPublicData()
    {
        $publicProperties = $this->getPublicPropertyList();

        $data = [];

        foreach ($publicProperties as $property) {
            if (isset($this[$property])) {
                $data[$property] = $this[$property];
            }
        }

        return $data;
    }
final public function exportPublicData ( ) { $ publicProperties = $ this -> getPublicPropertyList ( ) ; $ data = [ ] ; foreach ( $ publicProperties as $ property ) { if ( isset ( $ this [ $ property ] ) ) { $ data [ $ property ] = $ this [ $ property ] ; } } return $ data ; }
Exports an array of model values that have been marked safe for public consumption.

@return array
Exports an array of model values that have been marked safe for public consumption .