| 1 | <?php |
||
| 7 | class ParsedClass extends ParsedObject |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $namespace; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * A collection of methods belonging |
||
| 16 | * to the parsed class. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $methods; |
||
| 21 | |||
| 22 | 35 | public function __construct(string $doc, string $name, string $namespace, array $methods = []) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Return the methods of this parsed class |
||
| 31 | * optionally filtering on annotations present |
||
| 32 | * on a method. |
||
| 33 | * |
||
| 34 | * @param array $annotations |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getMethods(array $annotations = []): array |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Return the namespace of the parsed class. |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 1 | public function getNamespace(): string |
|
| 64 | } |
||
| 65 |