private function getProperty($object, $property) { $reflectionProperty = new \ReflectionProperty(get_class($object), $property); $reflectionProperty->setAccessible(true); return $reflectionProperty->getValue($object); }