2015-08-17 17:00:26 -07:00
< ? php
namespace Doctrine\Common\Reflection ;
use ReflectionException ;
2015-10-08 11:40:12 -07:00
use ReflectionProperty ;
2015-08-17 17:00:26 -07:00
class StaticReflectionProperty extends ReflectionProperty
{
/**
* The PSR - 0 parser object .
*
* @ var StaticReflectionParser
*/
protected $staticReflectionParser ;
/**
* The name of the property .
*
* @ var string | null
*/
protected $propertyName ;
/**
2018-11-23 12:29:20 +00:00
* @ param string | null $propertyName
2015-08-17 17:00:26 -07:00
*/
public function __construct ( StaticReflectionParser $staticReflectionParser , $propertyName )
{
$this -> staticReflectionParser = $staticReflectionParser ;
2018-11-23 12:29:20 +00:00
$this -> propertyName = $propertyName ;
2015-08-17 17:00:26 -07:00
}
/**
* { @ inheritDoc }
*/
public function getName ()
{
return $this -> propertyName ;
}
/**
* @ return StaticReflectionParser
*/
protected function getStaticReflectionParser ()
{
return $this -> staticReflectionParser -> getStaticReflectionParserForDeclaringClass ( 'property' , $this -> propertyName );
}
/**
* { @ inheritDoc }
*/
public function getDeclaringClass ()
{
return $this -> getStaticReflectionParser () -> getReflectionClass ();
}
/**
* { @ inheritDoc }
*/
public function getDocComment ()
{
return $this -> getStaticReflectionParser () -> getDocComment ( 'property' , $this -> propertyName );
}
/**
2018-11-23 12:29:20 +00:00
* @ return string []
2015-08-17 17:00:26 -07:00
*/
public function getUseStatements ()
{
return $this -> getStaticReflectionParser () -> getUseStatements ();
}
/**
* { @ inheritDoc }
*/
2017-04-13 15:53:35 +01:00
public static function export ( $class , $name , $return = false )
2015-08-17 17:00:26 -07:00
{
throw new ReflectionException ( 'Method not implemented' );
}
/**
* { @ inheritDoc }
*/
public function getModifiers ()
{
throw new ReflectionException ( 'Method not implemented' );
}
/**
* { @ inheritDoc }
*/
public function getValue ( $object = null )
{
throw new ReflectionException ( 'Method not implemented' );
}
/**
* { @ inheritDoc }
*/
public function isDefault ()
{
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 }
*/
2017-04-13 15:53:35 +01:00
public function setAccessible ( $accessible )
2015-08-17 17:00:26 -07:00
{
throw new ReflectionException ( 'Method not implemented' );
}
/**
* { @ inheritDoc }
*/
2017-04-13 15:53:35 +01:00
public function setValue ( $object , $value = null )
2015-08-17 17:00:26 -07:00
{
throw new ReflectionException ( 'Method not implemented' );
}
/**
* { @ inheritDoc }
*/
public function __toString ()
{
throw new ReflectionException ( 'Method not implemented' );
}
}