1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* AppserverIo\Lang\Reflection\ReflectionObject |
5
|
|
|
* |
6
|
|
|
* NOTICE OF LICENSE |
7
|
|
|
* |
8
|
|
|
* This source file is subject to the Open Software License (OSL 3.0) |
9
|
|
|
* that is available through the world-wide-web at this URL: |
10
|
|
|
* http://opensource.org/licenses/osl-3.0.php |
11
|
|
|
* |
12
|
|
|
* PHP version 5 |
13
|
|
|
* |
14
|
|
|
* @author Tim Wagner <[email protected]> |
15
|
|
|
* @copyright 2015 TechDivision GmbH <[email protected]> |
16
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
17
|
|
|
* @link https://github.com/appserver-io/lang |
18
|
|
|
* @link http://www.appserver.io |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
namespace AppserverIo\Lang\Reflection; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* A wrapper instance for a reflection object. |
25
|
|
|
* |
26
|
|
|
* @author Tim Wagner <[email protected]> |
27
|
|
|
* @copyright 2015 TechDivision GmbH <[email protected]> |
28
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
29
|
|
|
* @link https://github.com/appserver-io/lang |
30
|
|
|
* @link http://www.appserver.io |
31
|
|
|
*/ |
32
|
|
|
class ReflectionObject extends ReflectionClass |
33
|
|
|
{ |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* Initializes the timed object with the passed data. |
37
|
|
|
* |
38
|
|
|
* @param object $object The object to create the reflection object for |
39
|
|
|
* @param array $annotationsToIgnore An array with annotations names we want to ignore when loaded |
40
|
|
|
* @param array $annotationAliases An array with annotation aliases used when create annotation instances |
41
|
|
|
*/ |
42
|
|
|
public function __construct($object, array $annotationsToIgnore = array(), array $annotationAliases = array()) |
43
|
|
|
{ |
44
|
|
|
parent::__construct(get_class($object), $annotationsToIgnore, $annotationAliases); |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* This method returns the class name as |
49
|
|
|
* a string. |
50
|
|
|
* |
51
|
|
|
* @return string |
52
|
|
|
*/ |
53
|
|
|
public static function __getClass() |
54
|
|
|
{ |
55
|
|
|
return __CLASS__; |
56
|
|
|
} |
57
|
|
|
} |
58
|
|
|
|