Total Complexity | 3 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class AuthCodeMessage |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | public $content; |
||
11 | |||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | public $autoGenerate; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | public $type = 'auth'; |
||
21 | |||
22 | /** |
||
23 | * @param string $content |
||
24 | * |
||
25 | * @return $this |
||
26 | */ |
||
27 | public function content($content) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param bool $autoGenerateCode |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function autoGenerate($autoGenerate = true) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Get an array representation of the message. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function toArray() |
||
59 |