| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 37 | 63 | public function setQualifiedName($name) { |
|
| 38 | 63 | if (false !== $pos = strrpos($name, '\\')) { |
|
| 39 | 10 | $this->namespace = trim(substr($name, 0, $pos), '\\'); |
|
| 40 | 10 | $this->name = substr($name, $pos + 1); |
|
| 41 | |||
| 42 | 10 | return $this; |
|
| 43 | } |
||
| 44 | |||
| 45 | 59 | $this->namespace = null; |
|
| 46 | 59 | $this->name = $name; |
|
| 47 | |||
| 48 | 59 | return $this; |
|
| 49 | } |
||
| 50 | |||
| 73 |