| 1 | <?php |
||
| 11 | class Attribute |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Unique name |
||
| 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 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.