Conditions | 6 |
Paths | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 42 |
Changes | 0 |
1 | <?php |
||
58 | public function prepare($builder) |
||
59 | { |
||
60 | if (($this->ownerId !== null && empty($this->ownerId)) || |
||
61 | ($this->id !== null && empty($this->id)) |
||
62 | ) { |
||
63 | throw new QueryAbortedException(); |
||
64 | } |
||
65 | |||
66 | if ($this->id !== null) { |
||
67 | $this->andWhere(Db::parseParam('id', $this->id)); |
||
68 | } |
||
69 | |||
70 | $this->applyConditions($this); |
||
71 | |||
72 | return parent::prepare($builder); |
||
73 | } |
||
74 | } |
||
75 |