| 1 | <?php |
||
| 16 | class CheckoutIndexCommand implements Command { |
||
| 17 | /** |
||
| 18 | * Prefix. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $prefix; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Initialiser. |
||
| 26 | * |
||
| 27 | * @param string $prefix |
||
| 28 | */ |
||
| 29 | 1 | public function __construct($prefix) { |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @override Command |
||
| 35 | */ |
||
| 36 | 1 | public function getCommandLine() { |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Get the prefix. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | * |
||
| 45 | * @codeCoverageIgnore |
||
| 46 | */ |
||
| 47 | public function getPrefix() { |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Set the prefix. |
||
| 53 | * |
||
| 54 | * @param string $prefix |
||
| 55 | * |
||
| 56 | * @codeCoverageIgnore |
||
| 57 | */ |
||
| 58 | public function setPrefix($prefix) { |
||
| 61 | } |
||
| 62 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.