Chris@0: . Chris@0: */ Chris@0: Chris@0: namespace Doctrine\Common\Reflection; Chris@0: Chris@0: use ReflectionException; Chris@0: use ReflectionProperty; Chris@0: Chris@0: class StaticReflectionProperty extends ReflectionProperty 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 property. Chris@0: * Chris@0: * @var string|null Chris@0: */ Chris@0: protected $propertyName; Chris@0: Chris@0: /** Chris@0: * @param StaticReflectionParser $staticReflectionParser Chris@0: * @param string|null $propertyName Chris@0: */ Chris@0: public function __construct(StaticReflectionParser $staticReflectionParser, $propertyName) Chris@0: { Chris@0: $this->staticReflectionParser = $staticReflectionParser; Chris@0: $this->propertyName = $propertyName; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritDoc} Chris@0: */ Chris@0: public function getName() Chris@0: { Chris@0: return $this->propertyName; 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('property', $this->propertyName); 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 getDocComment() Chris@0: { Chris@0: return $this->getStaticReflectionParser()->getDocComment('property', $this->propertyName); 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 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 getValue($object = 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 isDefault() 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 setValue($object, $value = 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 __toString() Chris@0: { Chris@0: throw new ReflectionException('Method not implemented'); Chris@0: } Chris@0: }