| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 28 | public function __construct(Column $column) |
|
| 24 | { |
||
| 25 | 28 | $this->_attributeName = $column->getName(); |
|
| 26 | |||
| 27 | 28 | $relation = $column->getRelation(); |
|
| 28 | 28 | if ($relation !== null) |
|
| 29 | { |
||
| 30 | 2 | $aggregate = $relation->aggregate; |
|
| 31 | 2 | $this->_attributeName = ($aggregate !== 'first' ? ($aggregate . '_') : '') . $relation->name . '_' . $this->_attributeName; |
|
| 32 | } |
||
| 33 | |||
| 34 | 28 | $this->name = $this->_attributeName; |
|
| 35 | 28 | } |
|
| 36 | |||
| 81 | } |