1 | <?php |
||
17 | class ResetCommand extends BaseCommand |
||
18 | { |
||
19 | const GIT_RESET_COMMAND = 'reset'; |
||
20 | |||
21 | const OPTION_HARD = '--hard'; |
||
22 | const OPTION_MERGE = '--merge'; |
||
23 | const OPTION_SOFT = '--soft'; |
||
24 | |||
25 | /** |
||
26 | * constructor |
||
27 | * |
||
28 | * @param \GitElephant\Repository $repo The repository object this command |
||
29 | * will interact with |
||
30 | */ |
||
31 | public function __construct(Repository $repo = null) |
||
35 | |||
36 | /** |
||
37 | * @param TreeishInterface|Commit|string $arg |
||
38 | * @param array $options |
||
39 | * |
||
40 | * @throws \RuntimeException |
||
41 | * @return string |
||
42 | */ |
||
43 | public function reset($arg = null, Array $options = array()) |
||
59 | |||
60 | /** |
||
61 | * @return ResetCommand |
||
62 | */ |
||
63 | public static function getInstance() |
||
67 | |||
68 | |||
69 | |||
70 | } |