name, $class) === 0) { if($reflection->hasProperty($name)) { $property = $reflection->getProperty($name); if($property->isStatic() && $property->isPrivate()) { $property->setAccessible(true); return $property->getValue(); } } } } return null; } }