Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function get() |
||
20 | { |
||
21 | $this->actTrigger(Action::SELECT, $this); |
||
|
|||
22 | |||
23 | $this->limit(1); |
||
24 | |||
25 | /** |
||
26 | * @var Selected $rows |
||
27 | */ |
||
28 | $rows = yield $this->exec($this->sql(Action::SELECT)); |
||
29 | if ($rows->count() > 0) { |
||
30 | return (yield $this->rsTrigger((array)$rows))[0]; |
||
31 | } |
||
32 | |||
33 | return []; |
||
34 | } |
||
54 |