| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class Media extends Message implements MediaInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Properties. |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $properties = ['media_id']; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $required = [ |
||
| 33 | 'media_id', |
||
| 34 | ]; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * MaterialClient constructor. |
||
| 38 | * |
||
| 39 | * @param string $mediaId |
||
| 40 | * @param string $type |
||
| 41 | * @param array $attributes |
||
| 42 | */ |
||
| 43 | 12 | public function __construct(string $mediaId, $type = null, array $attributes = []) |
|
| 48 | 12 | } |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | * |
||
| 53 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException |
||
| 54 | */ |
||
| 55 | 1 | public function getMediaId(): string |
|
| 60 | } |
||
| 61 | |||
| 62 | 2 | public function toXmlArray() |
|
| 71 |