src/ReflectionTrait.php
public function getProperty(&$object, $propertyName)
    {
        $property = $this->getPropertyInstance($object, $propertyName);
        $property->setAccessible(true);

        return $property->getValue($object);
    }
public function getProperty(&$object, $propertyName)
    {
        $property = $this->getPropertyInstance($object, $propertyName);
        $property->setAccessible(true);

        return $property->getValue($object);
    }
public function getProperty ( & $ object , $ propertyName ) { $ property = $ this -> getPropertyInstance ( $ object , $ propertyName ) ; $ property -> setAccessible ( true ) ; return $ property -> getValue ( $ object ) ; }
Gets a property value
@param object $object Instantiated object that has the property
@param string $propertyName Property name
@return mixed Property value
@uses getPropertyInstance()
Gets a property value