3
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
* This software consists of voluntary contributions made by many individuals
16
* and is licensed under the MIT license. For more information, see
17
* <http://www.doctrine-project.org>.
20
namespace Doctrine\Common\Reflection;
22
use ReflectionProperty;
23
use ReflectionException;
25
class StaticReflectionProperty extends ReflectionProperty
28
* The PSR-0 parser object.
30
* @var StaticReflectionParser
32
protected $staticReflectionParser;
35
* The name of the property.
39
protected $propertyName;
41
public function __construct(StaticReflectionParser $staticReflectionParser, $propertyName)
43
$this->staticReflectionParser = $staticReflectionParser;
44
$this->propertyName = $propertyName;
46
public function getName()
48
return $this->propertyName;
50
protected function getStaticReflectionParser()
52
return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', $this->propertyName);
54
public function getDeclaringClass()
56
return $this->getStaticReflectionParser()->getReflectionClass();
58
public function getDocComment()
60
return $this->getStaticReflectionParser()->getDocComment('property', $this->propertyName);
62
public function getUseStatements()
64
return $this->getStaticReflectionParser()->getUseStatements();
66
public static function export ($class, $name, $return = false) { throw new ReflectionException('Method not implemented'); }
67
public function getModifiers() { throw new ReflectionException('Method not implemented'); }
68
public function getValue($object = NULL) { throw new ReflectionException('Method not implemented'); }
69
public function isDefault() { throw new ReflectionException('Method not implemented'); }
70
public function isPrivate() { throw new ReflectionException('Method not implemented'); }
71
public function isProtected() { throw new ReflectionException('Method not implemented'); }
72
public function isPublic() { throw new ReflectionException('Method not implemented'); }
73
public function isStatic() { throw new ReflectionException('Method not implemented'); }
74
public function setAccessible ($accessible) { throw new ReflectionException('Method not implemented'); }
75
public function setValue ($object, $value = NULL) { throw new ReflectionException('Method not implemented'); }
76
public function __toString() { throw new ReflectionException('Method not implemented'); }