Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 8 |
Ratio | 100 % |
1 | <?php |
||
16 | * |
||
17 | * @param QueryInterface $query Query object instance |
||
18 | * @param string $name Additional field name |
||
19 | * @param self $return Variable to return found database record |
||
20 | * @return bool|null|self Field instance or null if 3rd parameter not passed |
||
21 | */ |
||
22 | public static function byName(QueryInterface $query, $name, self & $return = null) |
||
23 | { |
||
24 | // Get field record by name column |
||
31 |