Conditions | 4 |
Paths | 5 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
22 | 4 | public function lastKey() |
|
23 | { |
||
24 | 4 | $after = $this->last(); |
|
25 | |||
26 | 4 | if (empty($after)) { |
|
27 | 4 | return null; |
|
28 | } |
||
29 | |||
30 | 4 | $afterKey = $after->getKeys(); |
|
31 | |||
32 | 4 | $attributes = $this->conditionIndex ? $this->conditionIndex->columns() : []; |
|
33 | |||
34 | 4 | foreach ($attributes as $attribute) { |
|
35 | 1 | $afterKey[$attribute] = $after->getAttribute($attribute); |
|
36 | } |
||
37 | |||
38 | 4 | return $afterKey; |
|
39 | } |
||
41 |