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 ReflectionException;
23 use ReflectionProperty;
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;
42 * @param StaticReflectionParser $staticReflectionParser
43 * @param string|null $propertyName
45 public function __construct(StaticReflectionParser $staticReflectionParser, $propertyName)
47 $this->staticReflectionParser = $staticReflectionParser;
48 $this->propertyName = $propertyName;
54 public function getName()
56 return $this->propertyName;
60 * @return StaticReflectionParser
62 protected function getStaticReflectionParser()
64 return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', $this->propertyName);
70 public function getDeclaringClass()
72 return $this->getStaticReflectionParser()->getReflectionClass();
78 public function getDocComment()
80 return $this->getStaticReflectionParser()->getDocComment('property', $this->propertyName);
86 public function getUseStatements()
88 return $this->getStaticReflectionParser()->getUseStatements();
94 public static function export($class, $name, $return = false)
96 throw new ReflectionException('Method not implemented');
102 public function getModifiers()
104 throw new ReflectionException('Method not implemented');
110 public function getValue($object = null)
112 throw new ReflectionException('Method not implemented');
118 public function isDefault()
120 throw new ReflectionException('Method not implemented');
126 public function isPrivate()
128 throw new ReflectionException('Method not implemented');
134 public function isProtected()
136 throw new ReflectionException('Method not implemented');
142 public function isPublic()
144 throw new ReflectionException('Method not implemented');
150 public function isStatic()
152 throw new ReflectionException('Method not implemented');
158 public function setAccessible($accessible)
160 throw new ReflectionException('Method not implemented');
166 public function setValue($object, $value = null)
168 throw new ReflectionException('Method not implemented');
174 public function __toString()
176 throw new ReflectionException('Method not implemented');