| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function manager(Manager $manager) |
||
| 19 | { |
||
| 20 | $this->manager = $manager; |
||
| 21 | $this->model = $manager->model(); |
||
| 22 | |||
| 23 | if(!$this->model instanceof StatefulContract){ |
||
| 24 | throw new \InvalidArgumentException(static::class . ' requires the model to implement the ' . StatefulContract::class); |
||
| 25 | } |
||
| 46 |