Conditions | 5 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | 64 | public function insertIntoContainer(Base $object) : Base { |
|
45 | 64 | $this->container->insert($object); |
|
46 | 64 | if ($this instanceof WithGamesInterface && $object instanceof WithGamesInterface) { |
|
47 | 64 | $this->addGameContainer($object->getGameContainer()); |
|
48 | } |
||
49 | 64 | if ($this instanceof WithTeamsInterface && $object instanceof WithTeamsInterface) { |
|
50 | 64 | $this->addTeamContainer($object->getTeamContainer()); |
|
51 | } |
||
52 | 64 | return $this; |
|
53 | } |
||
55 | } |