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