Completed
Push — master ( 017947...8f5b55 )
by frey
13s
created

File   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A media() 0 6 1
1
<?php
2
3
namespace EntWeChat\Message;
4
5
/**
6
 * Class File.
7
 *
8
 * @property string $media_id
9
 */
10
class File extends AbstractMessage
11
{
12
    /**
13
     * Message type.
14
     *
15
     * @var string
16
     */
17
    protected $type = 'file';
18
19
    /**
20
     * Properties.
21
     *
22
     * @var array
23
     */
24
    protected $properties = ['media_id'];
25
26
    /**
27
     * Set media id.
28
     *
29
     * @param string $mediaId
30
     *
31
     * @return $this
32
     */
33
    public function media($mediaId)
34
    {
35
        $this->setAttribute('media_id', $mediaId);
36
37
        return $this;
38
    }
39
}
40