| 1 | <?php |
||
| 8 | class AnnotationDefinition |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The tag name of the annotation. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $tag; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The description text for the annotation. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $description; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor. |
||
| 27 | * |
||
| 28 | * @param string $tag The tag name for the annotation. |
||
| 29 | * @param string $description The annotation description. |
||
| 30 | */ |
||
| 31 | 177 | public function __construct($tag, $description = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get the tag name. |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 30 | public function getTag() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get the description. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 30 | public function getDescription() |
|
| 60 | } |
||
| 61 |