Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / common / lib / Doctrine / Common / Reflection / StaticReflectionProperty.php
1 <?php
2 /*
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.
14  *
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>.
18  */
19
20 namespace Doctrine\Common\Reflection;
21
22 use ReflectionProperty;
23 use ReflectionException;
24
25 class StaticReflectionProperty extends ReflectionProperty
26 {
27     /**
28      * The PSR-0 parser object.
29      *
30      * @var StaticReflectionParser
31      */
32     protected $staticReflectionParser;
33
34     /**
35      * The name of the property.
36      *
37      * @var string
38      */
39     protected $propertyName;
40
41     public function __construct(StaticReflectionParser $staticReflectionParser, $propertyName)
42     {
43         $this->staticReflectionParser = $staticReflectionParser;
44         $this->propertyName = $propertyName;
45     }
46     public function getName()
47     {
48         return $this->propertyName;
49     }
50     protected function getStaticReflectionParser()
51     {
52         return $this->staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', $this->propertyName);
53     }
54     public function getDeclaringClass()
55     {
56         return $this->getStaticReflectionParser()->getReflectionClass();
57     }
58     public function getDocComment()
59     {
60         return $this->getStaticReflectionParser()->getDocComment('property', $this->propertyName);
61     }
62     public function getUseStatements()
63     {
64         return $this->getStaticReflectionParser()->getUseStatements();
65     }
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'); }
77 }