1 | <?php |
||
29 | class AddCommand extends AbstractCommand |
||
30 | { |
||
31 | /** |
||
32 | * Available arguments for this command. |
||
33 | * |
||
34 | * @var array $arguments |
||
35 | */ |
||
36 | protected $arguments = [ |
||
37 | 'file' => [] |
||
38 | ]; |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | * |
||
43 | * @var mixed $options |
||
44 | */ |
||
45 | protected $options = [ |
||
46 | '--include' => [], |
||
47 | '--exclude' => [], |
||
48 | '--subrepos' => false, |
||
49 | '--dry-run' => false |
||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * Get the file argument. |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | 1 | public function getFile() |
|
61 | |||
62 | /** |
||
63 | * Add a file to the file argument. |
||
64 | * |
||
65 | * @param string $file |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | 1 | public function addFile($file) |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 1 | public function __toString() |
|
86 | } |
||
87 |