1 | <?php |
||
21 | class AliasMethod extends Method implements AliasMethodInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $alias; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $visibility; |
||
33 | |||
34 | 11 | public function __construct($traitName, $name, $alias, $visibility = null) |
|
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | * @return AliasInterface |
||
49 | */ |
||
50 | 11 | public function setAlias($alias) |
|
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | 5 | public function getAlias() |
|
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | 1 | public function hasAlias() |
|
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 5 | public function getVisibility() |
|
79 | |||
80 | /** |
||
81 | * @inheritdoc |
||
82 | * @return AliasMethod |
||
83 | */ |
||
84 | 3 | public function setVisibility($visibility) |
|
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 4 | public function toString() |
|
106 | |||
107 | /** |
||
108 | * Convert visibility to string. |
||
109 | * @param string $text |
||
110 | * @return string |
||
111 | */ |
||
112 | 4 | protected function prependWhiteSpace($text) |
|
119 | } |
||
120 |