Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | trait TPrimaryKey |
||
13 | { |
||
14 | /** @var string[] */ |
||
15 | protected $primaryKeys = []; |
||
16 | |||
17 | 40 | public function addPrimaryKey(string $localAlias): void |
|
18 | { |
||
19 | 40 | $this->primaryKeys[] = $localAlias; |
|
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return string[] |
||
24 | */ |
||
25 | 15 | public function getPrimaryKeys(): array |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param mixed $v |
||
32 | * @param string|int $k |
||
33 | * @return bool |
||
34 | */ |
||
35 | 1 | public function filterPrimary($v, $k): bool |
|
40 |