1 | <?php |
||
31 | class RenameCommand extends AbstractCommand |
||
32 | { |
||
33 | /** |
||
34 | * Available arguments for this command. |
||
35 | * |
||
36 | * @var array $arguments |
||
37 | */ |
||
38 | protected $arguments = [ |
||
39 | 'source' => [], |
||
40 | 'dest' => '' |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | * |
||
46 | * @var mixed $options |
||
47 | */ |
||
48 | protected $options = [ |
||
49 | '--after' => false, |
||
50 | '--force' => false, |
||
51 | '--include' => [], |
||
52 | '--exclude' => [], |
||
53 | '--dry-run' => false |
||
54 | ]; |
||
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | 2 | public function getSource() |
|
63 | |||
64 | /** |
||
65 | * @param string $source |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | 2 | public function addSource($source) |
|
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 2 | public function getDestination() |
|
81 | |||
82 | /** |
||
83 | * @param string $destination |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | 2 | public function setDestination($destination) |
|
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 2 | public function __toString() |
|
105 | } |
||
106 |