123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <?php
- namespace Doctrine\Common\Reflection;
- use ReflectionException;
- use ReflectionMethod;
- class StaticReflectionMethod extends ReflectionMethod
- {
- /**
- * The PSR-0 parser object.
- *
- * @var StaticReflectionParser
- */
- protected $staticReflectionParser;
- /**
- * The name of the method.
- *
- * @var string
- */
- protected $methodName;
- /**
- * @param string $methodName
- */
- public function __construct(StaticReflectionParser $staticReflectionParser, $methodName)
- {
- $this->staticReflectionParser = $staticReflectionParser;
- $this->methodName = $methodName;
- }
- /**
- * {@inheritDoc}
- */
- public function getName()
- {
- return $this->methodName;
- }
- /**
- * @return StaticReflectionParser
- */
- protected function getStaticReflectionParser()
- {
- return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('method', $this->methodName);
- }
- /**
- * {@inheritDoc}
- */
- public function getDeclaringClass()
- {
- return $this->getStaticReflectionParser()->getReflectionClass();
- }
- /**
- * {@inheritDoc}
- */
- public function getNamespaceName()
- {
- return $this->getStaticReflectionParser()->getNamespaceName();
- }
- /**
- * {@inheritDoc}
- */
- public function getDocComment()
- {
- return $this->getStaticReflectionParser()->getDocComment('method', $this->methodName);
- }
- /**
- * @return string[]
- */
- public function getUseStatements()
- {
- return $this->getStaticReflectionParser()->getUseStatements();
- }
- /**
- * {@inheritDoc}
- */
- public static function export($class, $name, $return = false)
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function getClosure($object)
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function getModifiers()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function getPrototype()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function invoke($object, $parameter = null)
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function invokeArgs($object, array $args)
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isAbstract()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isConstructor()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isDestructor()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isFinal()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isPrivate()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isProtected()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isPublic()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isStatic()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function setAccessible($accessible)
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function __toString()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function getClosureThis()
- {
- 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 getNumberOfParameters()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function getNumberOfRequiredParameters()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function getParameters()
- {
- 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 getStaticVariables()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function inNamespace()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isClosure()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isDeprecated()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isInternal()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function isUserDefined()
- {
- throw new ReflectionException('Method not implemented');
- }
- /**
- * {@inheritDoc}
- */
- public function returnsReference()
- {
- throw new ReflectionException('Method not implemented');
- }
- }
|