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