| 1 | <?php | ||
| 9 | class UploadRequest | ||
| 10 | { | ||
| 11 | use SerializesModels; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * @var string | ||
| 15 | */ | ||
| 16 | protected $sourcePath; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * @var string | ||
| 20 | */ | ||
| 21 | protected $destinationPath; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @var Model | ||
| 25 | */ | ||
| 26 | protected $target; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * UploadRequest constructor. | ||
| 30 | * | ||
| 31 | * @param mixed $source | ||
| 32 | * @param null $destinationPath | ||
| 33 | */ | ||
| 34 | public function __construct($source, $destinationPath = null) | ||
| 51 | |||
| 52 | /** | ||
| 53 | * @return string | ||
| 54 | */ | ||
| 55 | public function getSourcePath() | ||
| 59 | |||
| 60 | /** | ||
| 61 | * @return string | ||
| 62 | */ | ||
| 63 | public function getDestinationPath() | ||
| 67 | |||
| 68 | /** | ||
| 69 | * @return Model | ||
| 70 | */ | ||
| 71 | public function getTarget() | ||
| 75 | } |