Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public static function byName(QueryInterface $query, $name, self & $return = null) |
||
23 | { |
||
24 | // Get field record by name column |
||
25 | $return = static::oneByColumn($query, 'Name', $name); |
||
26 | |||
27 | // If only one argument is passed - return null, otherwise bool |
||
28 | return func_num_args() > 1 ? $return == null : $return; |
||
29 | } |
||
30 | } |
||
31 |