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