| 1 | <?php |
||
| 17 | final class Attributes |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var ContentTypeAttribute |
||
| 21 | */ |
||
| 22 | private $contentType; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var ExtensionAttribute |
||
| 26 | */ |
||
| 27 | private $extension; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param ContentTypeAttribute|null $contentType |
||
| 31 | * @param ExtensionAttribute|null $extension |
||
| 32 | */ |
||
| 33 | public function __construct(ContentTypeAttribute $contentType = null, ExtensionAttribute $extension = null) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return ContentTypeAttribute |
||
| 41 | */ |
||
| 42 | public function getContentType(): ContentTypeAttribute |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return ExtensionAttribute |
||
| 49 | */ |
||
| 50 | public function getExtension(): ExtensionAttribute |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return bool |
||
| 57 | */ |
||
| 58 | public function isValid(): bool |
||
| 63 | } |
||
| 64 |