| 1 | <?php |
||
| 9 | abstract class Extension |
||
| 10 | { |
||
| 11 | protected const IDENTIFIERS_SEPARATOR = '.'; |
||
| 12 | |||
| 13 | private $identifiers; |
||
| 14 | |||
| 15 | 40 | final protected function __construct(array $identifiers) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @throws InvalidVersion |
||
| 24 | */ |
||
| 25 | abstract protected function validate(array $identifiers): void; |
||
| 26 | |||
| 27 | 8 | public static function from(string $identifier, string ...$identifiers) |
|
| 31 | |||
| 32 | 4 | public static function fromArray(array $identifiers) |
|
| 36 | |||
| 37 | 28 | public static function fromString(string $extension) |
|
| 41 | |||
| 42 | 29 | public function getIdentifiers(): array |
|
| 46 | |||
| 47 | 9 | public function toString(): string |
|
| 51 | } |
||
| 52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.