| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class OperationData extends Map |
||
| 13 | { |
||
| 14 | 2 | public function getOp(): Option |
|
| 15 | { |
||
| 16 | 2 | return $this->get(Operations::OP_KEY_NAME); |
|
| 17 | } |
||
| 18 | |||
| 19 | 6 | public function getData(): Map |
|
| 20 | { |
||
| 21 | 6 | $operationData = new Map($this->elements); |
|
| 22 | 6 | if ($operationData->containsKey(Operations::OP_KEY_NAME)) { |
|
| 23 | 5 | $operationData->remove(Operations::OP_KEY_NAME); |
|
| 24 | } |
||
| 25 | |||
| 26 | 6 | return $operationData; |
|
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $keys |
||
| 31 | * @return Sequence |
||
| 32 | */ |
||
| 33 | 3 | public function diffKeys(array $keys): Sequence |
|
| 41 | } |
||
| 42 | } |
||
| 43 |