Material::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
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