Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| BaseAnnotation | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Miniframe\Annotation\Annotation; |
| 4 | |
| 5 | /** |
| 6 | * Base annotation |
| 7 | * |
| 8 | * @Annotation |
| 9 | */ |
| 10 | class BaseAnnotation |
| 11 | { |
| 12 | /** |
| 13 | * Name of the base annotation (var, author, etc.) |
| 14 | * |
| 15 | * @var string |
| 16 | */ |
| 17 | public $name; |
| 18 | |
| 19 | /** |
| 20 | * Value of the annotation |
| 21 | * |
| 22 | * @var string |
| 23 | */ |
| 24 | public $value; |
| 25 | |
| 26 | /*** |
| 27 | * Initiates a new base annotation |
| 28 | * |
| 29 | * @param string $name Name of the base annotation (var, author, etc.). |
| 30 | * @param string $value Value of the annotation. |
| 31 | */ |
| 32 | public function __construct(string $name, string $value) |
| 33 | { |
| 34 | $this->name = $name; |
| 35 | $this->value = $value; |
| 36 | } |
| 37 | } |