1 | <?php |
||
4 | abstract class ParsedObject |
||
5 | { |
||
6 | /** |
||
7 | * @var string |
||
8 | */ |
||
9 | protected $docBlock; |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name; |
||
15 | |||
16 | 72 | public function __construct($doc, $name) |
|
21 | |||
22 | /** |
||
23 | * Get the name of a parsed object |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | 24 | public function getName() |
|
31 | |||
32 | /** |
||
33 | * Get the doc block comments of a parsed object |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | 20 | public function getDocBlock() |
|
41 | |||
42 | /** |
||
43 | * Returns whether or not the parsed object |
||
44 | * has an annotation matching the name and value |
||
45 | * if provided |
||
46 | * |
||
47 | * @param string $anno |
||
48 | * @param mixed $value |
||
49 | * @return bool |
||
50 | */ |
||
51 | 7 | public function hasAnnotation($anno, $value = null) |
|
60 | } |
||
61 |