| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | trait CommandTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $command; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $command |
||
| 14 | * |
||
| 15 | * @return $this |
||
| 16 | */ |
||
| 17 | public function command(string $command) |
||
| 18 | { |
||
| 19 | $this->command = $command; |
||
| 20 | |||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function commandData(): string |
||
| 28 | { |
||
| 29 | return $this->command; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | protected function buildCommandQueryPart(): string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |