| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function iCreateModelWithIdForDomain($arg1, $arg2) |
||
| 29 | { |
||
| 30 | $domainId = new DomainId($arg2); |
||
| 31 | $domain = $this->domainRepository->getById($domainId); |
||
| 32 | $domain->addModel( |
||
| 33 | new \Hexarchium\CoreDomain\Model\Domain\Entity\Model( |
||
| 34 | new \Hexarchium\CoreDomain\Model\Domain\Model\ModelId($domainId, $arg1) |
||
| 35 | ) |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 55 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.