protected function getProperty($reflectionObject, $entity, $name)
    {
        $property = $reflectionObject->getProperty($name);
        $property->setAccessible(true);
        return $property->getValue($entity);
    }
protected function getProperty($reflectionObject, $entity, $name)
    {
        $property = $reflectionObject->getProperty($name);
        $property->setAccessible(true);
        return $property->getValue($entity);
    }
protected function getProperty ( $ reflectionObject , $ entity , $ name ) { $ property = $ reflectionObject -> getProperty ( $ name ) ; $ property -> setAccessible ( true ) ; return $ property -> getValue ( $ entity ) ; }
Get a private property of an entity.

@param \ReflectionObject $reflectionObject
@param object $entity
@param string $name
@param mixed $value
@return mixed
Get a private property of an entity .