| 1 | <?php |
||
| 24 | abstract class File implements ResourceInterface |
||
| 25 | { |
||
| 26 | use IdentifiableTrait; |
||
| 27 | |||
| 28 | /** @var \SplFileInfo|null */ |
||
| 29 | protected $file; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string|null |
||
| 33 | * |
||
| 34 | * @ORM\Column(type="string") |
||
| 35 | * |
||
| 36 | * @Serializer\Groups({"Default", "Detailed"}) |
||
| 37 | */ |
||
| 38 | protected $path; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string|null |
||
| 42 | * |
||
| 43 | * @ORM\Column(type="string", nullable=true) |
||
| 44 | */ |
||
| 45 | protected $type; |
||
| 46 | |||
| 47 | public function getFile(): ?\SplFileInfo |
||
| 51 | |||
| 52 | public function setFile(?\SplFileInfo $file): void |
||
| 56 | |||
| 57 | public function getPath(): ?string |
||
| 61 | |||
| 62 | public function setPath(?string $path): void |
||
| 66 | |||
| 67 | public function getType(): ?string |
||
| 71 | |||
| 72 | public function setType(?string $type): void |
||
| 76 | } |
||
| 77 |