1 | <?php |
||
24 | class Exec extends GitExec |
||
25 | { |
||
26 | /** |
||
27 | * Use short hash? |
||
28 | * |
||
29 | * @var bool |
||
30 | **/ |
||
31 | private $short = true; |
||
32 | |||
33 | /** |
||
34 | * Constructor |
||
35 | * |
||
36 | * @param bool $short |
||
37 | * @return void |
||
|
|||
38 | **/ |
||
39 | public function __construct($short = true) |
||
43 | |||
44 | /** |
||
45 | * Get use short commit hash? |
||
46 | * |
||
47 | * @return bool |
||
48 | */ |
||
49 | public function getShort() |
||
53 | |||
54 | /** |
||
55 | * Set use short commit hash? |
||
56 | * |
||
57 | * @param bool $short |
||
58 | * @return Exec |
||
59 | */ |
||
60 | public function setShort($short) |
||
66 | |||
67 | /** |
||
68 | * Get command for directory |
||
69 | * |
||
70 | * @param string $directory |
||
71 | * @return string |
||
72 | **/ |
||
73 | protected function getCommandForDirectory($directory) |
||
87 | } |
||
88 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.