| 1 | <?php |
||
| 11 | class Attribute |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Unique name of attribute inside of attribute-object |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $name; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Attribute constructor. |
||
| 22 | * |
||
| 23 | * @param string $name |
||
| 24 | */ |
||
| 25 | public function __construct(string $name) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get name |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getName(): string |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Merge a attribute into this one |
||
| 42 | * Named data of given attribute will override existing one in the case of names conflict |
||
| 43 | * |
||
| 44 | * @param self $attribute |
||
| 45 | */ |
||
| 46 | public function merge(self $attribute) |
||
| 50 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.