| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.4746 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 1 | public function handle(): void |
|
| 27 | { |
||
| 28 | 1 | if ($this->conversable instanceof Intent) { |
|
| 29 | 1 | context()->setIntent($this->conversable)->setInteraction(null); |
|
| 30 | |||
| 31 | 1 | $this->conversable->handle($this->messageReceived); |
|
| 32 | } elseif ($this->conversable instanceof Interaction) { |
||
| 33 | $this->conversable->handle($this->messageReceived); |
||
| 34 | } else { |
||
| 35 | $this->conversable->handle($this->messageReceived); |
||
| 36 | } |
||
| 37 | 1 | } |
|
| 38 | } |
||
| 39 |