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