| 1 | <?php |
||
| 19 | class File implements FileInterface |
||
| 20 | { |
||
| 21 | use TimestampableTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Uploaded file extension. |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $fileExtension; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $assetId; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var ArticleMediaInterface |
||
| 42 | */ |
||
| 43 | protected $media; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * File constructor. |
||
| 47 | */ |
||
| 48 | public function __construct() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return ArticleMediaInterface |
||
| 55 | */ |
||
| 56 | public function getMedia(): ArticleMediaInterface |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param ArticleMediaInterface $media |
||
| 63 | */ |
||
| 64 | public function setMedia(ArticleMediaInterface $media) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param string $id |
||
| 71 | */ |
||
| 72 | public function setId($id) |
||
| 76 | |||
| 77 | /** |
||
| 78 | * {@inheritdoc} |
||
| 79 | */ |
||
| 80 | public function getId() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * {@inheritdoc} |
||
| 87 | */ |
||
| 88 | public function setFileExtension($extension) |
||
| 92 | |||
| 93 | /** |
||
| 94 | * {@inheritdoc} |
||
| 95 | */ |
||
| 96 | public function getFileExtension() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @return string |
||
| 103 | */ |
||
| 104 | public function getAssetId(): string |
||
| 108 | |||
| 109 | /** |
||
| 110 | * {@inheritdoc} |
||
| 111 | */ |
||
| 112 | public function setAssetId(string $assetId) |
||
| 116 | } |
||
| 117 |