| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class Conversation extends BaseConversation |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Run `$this->say()` method with a renderable parameter. |
||
| 12 | * |
||
| 13 | * @param \Illuminate\Contracts\Support\Renderable $view |
||
| 14 | * @param array $additionalParameters |
||
| 15 | * @return $this |
||
| 16 | */ |
||
| 17 | protected function sayRenderable(Renderable $view, array $additionalParameters = []) |
||
| 18 | { |
||
| 19 | $this->say($view->render(), $additionalParameters); |
||
| 20 | |||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Run `$this->ask()` method with a renderable parameter. |
||
| 26 | * |
||
| 27 | * @param \Illuminate\Contracts\Support\Renderable $view |
||
| 28 | * @param array|\Closure $next |
||
| 29 | * @param array $additionalParameters |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | protected function askRenderable($view, $next, $additionalParameters = []) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |