2015-08-18 00:00:26 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Common\Reflection;
|
|
|
|
|
|
|
|
use ReflectionClass;
|
|
|
|
use ReflectionException;
|
|
|
|
|
|
|
|
class StaticReflectionClass extends ReflectionClass
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The static reflection parser object.
|
|
|
|
*
|
|
|
|
* @var StaticReflectionParser
|
|
|
|
*/
|
|
|
|
private $staticReflectionParser;
|
|
|
|
|
|
|
|
public function __construct(StaticReflectionParser $staticReflectionParser)
|
|
|
|
{
|
|
|
|
$this->staticReflectionParser = $staticReflectionParser;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->staticReflectionParser->getClassName();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getDocComment()
|
|
|
|
{
|
|
|
|
return $this->staticReflectionParser->getDocComment();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getNamespaceName()
|
|
|
|
{
|
|
|
|
return $this->staticReflectionParser->getNamespaceName();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-11-23 12:29:20 +00:00
|
|
|
* @return string[]
|
2015-08-18 00:00:26 +00:00
|
|
|
*/
|
|
|
|
public function getUseStatements()
|
|
|
|
{
|
|
|
|
return $this->staticReflectionParser->getUseStatements();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getMethod($name)
|
|
|
|
{
|
|
|
|
return $this->staticReflectionParser->getReflectionMethod($name);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getProperty($name)
|
|
|
|
{
|
|
|
|
return $this->staticReflectionParser->getReflectionProperty($name);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public static function export($argument, $return = false)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getConstant($name)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getConstants()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getConstructor()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getDefaultProperties()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getEndLine()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getExtension()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getExtensionName()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getFileName()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getInterfaceNames()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getInterfaces()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getMethods($filter = null)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getModifiers()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getParentClass()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getProperties($filter = null)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getShortName()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getStartLine()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getStaticProperties()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getStaticPropertyValue($name, $default = '')
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getTraitAliases()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getTraitNames()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function getTraits()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function hasConstant($name)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function hasMethod($name)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function hasProperty($name)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function implementsInterface($interface)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function inNamespace()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isAbstract()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isCloneable()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isFinal()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isInstance($object)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isInstantiable()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isInterface()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isInternal()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isIterateable()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isSubclassOf($class)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isTrait()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function isUserDefined()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function newInstance($args)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
2017-04-13 14:53:35 +00:00
|
|
|
public function newInstanceArgs(array $args = [])
|
2015-08-18 00:00:26 +00:00
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function newInstanceWithoutConstructor()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function setStaticPropertyValue($name, $value)
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
public function __toString()
|
|
|
|
{
|
|
|
|
throw new ReflectionException('Method not implemented');
|
|
|
|
}
|
|
|
|
}
|