| 1 | <?php |
||
| 16 | abstract class BaseAnnotation |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Value property. Common among all derived classes. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $value; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor |
||
| 27 | * |
||
| 28 | * @param array $data Key-value for properties to be defined in this class |
||
| 29 | */ |
||
| 30 | final public function __construct(array $data) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Error handler for unknown property accessor in Annotation class. |
||
| 39 | * |
||
| 40 | * @param string $name Unknown property name |
||
| 41 | */ |
||
| 42 | public function __get($name) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Error handler for unknown property mutator in Annotation class. |
||
| 51 | * |
||
| 52 | * @param string $name Unknown property name |
||
| 53 | * @param mixed $value Property value |
||
| 54 | */ |
||
| 55 | public function __set($name, $value) |
||
| 61 | } |
||
| 62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.