| 1 | <?php | ||
| 21 | class FileUploaded implements FileEvent | ||
| 22 | { | ||
| 23 | /** | ||
| 24 | * The file id. | ||
| 25 | * | ||
| 26 | * @var FileId | ||
| 27 | */ | ||
| 28 | private $id; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * The file name. | ||
| 32 | * | ||
| 33 | * @var FileName | ||
| 34 | */ | ||
| 35 | private $name; | ||
| 36 | |||
| 37 | /** | ||
| 38 | * The occurred on. | ||
| 39 | * | ||
| 40 | * @var \DateTimeImmutable | ||
| 41 | */ | ||
| 42 | private $occurredOn; | ||
| 43 | |||
| 44 | /** | ||
| 45 | * Constructor. | ||
| 46 | * | ||
| 47 | * @param FileId $aFileId The file id | ||
| 48 | * @param FileName $aName The file name | ||
| 49 | */ | ||
| 50 | public function __construct(FileId $aFileId, FileName $aName) | ||
| 56 | |||
| 57 | /** | ||
| 58 | * Gets the file id. | ||
| 59 | * | ||
| 60 | * @return FileId | ||
| 61 | */ | ||
| 62 | public function id() | ||
| 66 | |||
| 67 | /** | ||
| 68 | * Gets the file name. | ||
| 69 | * | ||
| 70 | * @return FileName | ||
| 71 | */ | ||
| 72 | public function name() | ||
| 76 | |||
| 77 | /** | ||
| 78 | * Gets the occurred on. | ||
| 79 | * | ||
| 80 | * @return \DateTimeImmutable | ||
| 81 | */ | ||
| 82 | public function occurredOn() | ||
| 86 | } | ||
| 87 |