| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 38 | public function setName(string $name) |
|
| 46 | { |
||
| 47 | 38 | $posDivider = \mb_strpos($name, '.'); |
|
| 48 | 38 | if ($posDivider === false) |
|
| 49 | { |
||
| 50 | 36 | $this->_name = $name; |
|
| 51 | |||
| 52 | 36 | return; |
|
| 53 | } |
||
| 54 | |||
| 55 | 4 | $this->_relation = new Relation($name); |
|
| 56 | 4 | $this->_name = \str_replace(')', '', \mb_substr($name, $posDivider + 1)); |
|
| 57 | 4 | } |
|
| 58 | |||
| 88 | } |