| 1 | <?php |
||
| 22 | class RenameFileCommand |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * The file id. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The file name. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $name; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Constructor. |
||
| 40 | * |
||
| 41 | * @param string $anId The file id |
||
| 42 | * @param string $aName The file name |
||
| 43 | * |
||
| 44 | * @throws \InvalidArgumentException when the id or uploaded file given are null |
||
| 45 | * @throws FileNameException when the name given is null |
||
| 46 | */ |
||
| 47 | public function __construct($anId, $aName) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Gets the file id. |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function id() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Gets the file name. |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function name() |
||
| 78 | } |
||
| 79 |