for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Common\Persistence\Mapping;
/**
* PHP Runtime Reflection Service.
*
* @author Benjamin Eberlei <[email protected]>
*/
class StaticReflectionService implements ReflectionService
{
* {@inheritDoc}
public function getParentClasses($class)
return [];
}
public function getClassShortName($className)
if (strpos($className, '\\') !== false) {
$className = substr($className, strrpos($className, "\\") + 1);
return $className;
public function getClassNamespace($className)
$namespace = '';
$namespace = strrev(substr(strrev($className), strpos(strrev($className), '\\') + 1));
return $namespace;
public function getClass($class)
return null;
public function getAccessibleProperty($class, $property)
public function hasPublicMethod($class, $method)
return true;