Text   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace DingNotice\Messages;
4
5
class Text extends Message
6
{
7
    public function __construct($content)
8
    {
9
        $this->message = [
10
            'msgtype' => 'text',
11
            'text' => [
12
                'content' => $content
13
            ]
14
        ];
15
    }
16
17
}