Completed
Push — master ( 4317fb...cd535a )
by Vladimir
02:31
created

FallbackIntent::activators()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Conversation\Fallback;
6
7
use FondBot\Conversation\Intent;
8
use FondBot\Contracts\Conversation\Activator;
9
10
class FallbackIntent extends Intent
11
{
12
    /**
13
     * Intent activators.
14
     *
15
     * @return Activator[]
16
     */
17
    public function activators(): array
18
    {
19
        return [];
20
    }
21
22
    /**
23
     * Process intent.
24
     */
25
    public function process(): void
26
    {
27
        $this->jump(FallbackInteraction::class);
28
        $this->bot->clearContext();
29
    }
30
}
31