| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class Client extends BaseClient |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Allow media type. |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $allowTypes = ['image', 'voice', 'video', 'thumb', 'news_image']; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Fetch material. |
||
| 33 | * |
||
| 34 | * @param string $mediaId |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | * |
||
| 38 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
||
| 39 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
| 40 | */ |
||
| 41 | public function get(string $mediaId) |
||
| 52 |