Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | class Delete extends EmulateBySql |
||
16 | { |
||
17 | use Utils; |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $cluster; |
||
22 | |||
23 | public function setBody($params = null) |
||
24 | { |
||
25 | if (isset($this->cluster)) { |
||
26 | return parent::setBody(['query' => "DELETE CLUSTER ".$this->cluster]); |
||
27 | } |
||
28 | throw new RuntimeException('Cluster name is missing.'); |
||
29 | } |
||
30 | /** |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getCLuster() |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param mixed $cluster |
||
40 | */ |
||
41 | public function setCluster($cluster) |
||
46 |