public function getGettablePropertiesOfObject($object)
    {
        $className = get_class($object);

        if (false === isset($this->gettablePropertiesOfObjects[$className])) {
            $this->gettablePropertiesOfObjects[$className] = [];
            $properties = $this->getReflectionService()->getClassPropertyNames($className);

            foreach ($properties as $propertyName) {
                if (true === $this->isPropertyGettable($object, $propertyName)) {
                    $this->gettablePropertiesOfObjects[$className][] = $propertyName;
                }
            }
        }

        return $this->gettablePropertiesOfObjects[$className];
    }
public function getGettablePropertiesOfObject($object)
    {
        $className = get_class($object);

        if (false === isset($this->gettablePropertiesOfObjects[$className])) {
            $this->gettablePropertiesOfObjects[$className] = [];
            $properties = $this->getReflectionService()->getClassPropertyNames($className);

            foreach ($properties as $propertyName) {
                if (true === $this->isPropertyGettable($object, $propertyName)) {
                    $this->gettablePropertiesOfObjects[$className][] = $propertyName;
                }
            }
        }

        return $this->gettablePropertiesOfObjects[$className];
    }
public function getGettablePropertiesOfObject ( $ object ) { $ className = get_class ( $ object ) ; if ( false === isset ( $ this -> gettablePropertiesOfObjects [ $ className ] ) ) { $ this -> gettablePropertiesOfObjects [ $ className ] = [ ] ; $ properties = $ this -> getReflectionService ( ) -> getClassPropertyNames ( $ className ) ; foreach ( $ properties as $ propertyName ) { if ( true === $ this -> isPropertyGettable ( $ object , $ propertyName ) ) { $ this -> gettablePropertiesOfObjects [ $ className ] [ ] = $ propertyName ; } } } return $ this -> gettablePropertiesOfObjects [ $ className ] ; }
Returns the list of properties which are accessible for this given
object.

Properties are stored in local cache to improve performance.

@param object $object
@return array
Returns the list of properties which are accessible for this given object .