Material   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace EntWeChat\Message;
4
5
/**
6
 * Class Material.
7
 */
8
class Material extends AbstractMessage
9
{
10
    /**
11
     * Properties.
12
     *
13
     * @var array
14
     */
15
    protected $properties = ['media_id'];
16
17
    /**
18
     * Material constructor.
19
     *
20
     * @param string $mediaId
21
     * @param string $type
22
     */
23
    public function __construct($type, $mediaId)
24
    {
25
        $this->set('media_id', $mediaId);
26
        $this->type = $type;
27
    }
28
}
29