| 1 | <?php |
||
| 17 | class ExtensionAttribute |
||
| 18 | { |
||
| 19 | use AttributeTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string|null |
||
| 23 | */ |
||
| 24 | private $name; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string|null $name |
||
| 28 | */ |
||
| 29 | public function __construct(string $name = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function stringify(): string |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return null|string |
||
| 44 | */ |
||
| 45 | public function getName(): ?string |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function hasName(): bool |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string|null $name |
||
| 60 | * |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | public function isNameMatch(string $name = null): bool |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string|null $name |
||
| 70 | * |
||
| 71 | * @return bool |
||
| 72 | */ |
||
| 73 | public function isMatch(string $name = null): bool |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @return bool |
||
| 80 | */ |
||
| 81 | public function isValid(): bool |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param string $string |
||
| 89 | * |
||
| 90 | * @return array|null |
||
| 91 | */ |
||
| 92 | public static function explodeParsable(string $string = null): ?array |
||
| 98 | } |
||
| 99 |