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

FallbackIntent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A activators() 0 4 1
A process() 0 5 1
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