| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait HasTableAlias |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Qualify the given column name by the model's table. |
||
| 11 | * |
||
| 12 | * @param string $column |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 26 | public function qualifyColumn($column) |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set an alias for the model's table. |
||
| 32 | * |
||
| 33 | * @param string $alias |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | 1 | public function setAlias($alias) |
|
| 41 |