Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function setBehavior(string $behaviorName, BehaviorInterface $behavior): void |
||
31 | { |
||
32 | $modelsManager = $this->getModelsManager(); |
||
33 | assert($modelsManager instanceof ManagerInterface); |
||
34 | assert($this instanceof ModelInterface); |
||
35 | $modelsManager->setBehavior($this, $behaviorName, $behavior); |
||
36 | } |
||
46 |