Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | trait Behavior |
||
19 | { |
||
20 | use AbstractModelsManager; |
||
21 | |||
22 | public function getBehavior(string $behaviorName): BehaviorInterface |
||
28 | } |
||
29 | |||
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 | } |
||
37 | |||
38 | public function hasBehavior(string $behaviorName): bool |
||
44 | } |
||
45 | } |
||
46 |