Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class RunOpts |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $prefix; |
||
16 | |||
17 | /** |
||
18 | * Static factory method |
||
19 | * |
||
20 | * @param string $prefix |
||
21 | * @return RunOpts |
||
22 | */ |
||
23 | 1 | public static function create($prefix) |
|
24 | { |
||
25 | 1 | return new self($prefix); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * RunOpts constructor. |
||
30 | * |
||
31 | * NOTE: All run options are optional by design (pass NULL). |
||
32 | * |
||
33 | * @param string $prefix |
||
34 | * @param string $binaryPackage package name or path to binary (string) |
||
35 | */ |
||
36 | 1 | public function __construct($prefix = null) |
|
39 | 1 | } |
|
40 | |||
41 | /** |
||
42 | * @param string $prefix |
||
43 | */ |
||
44 | 1 | public function setPrefix($prefix) |
|
47 | 1 | } |
|
48 | |||
49 | /** |
||
50 | * The prefix is used when creating containers for the container name. |
||
51 | * |
||
52 | * See --prefix option. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | 1 | public function getPrefix() |
|
61 |