ToMany::send()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace MeysamZnd\KaveNegarSmsProvider;
4
5
use GuzzleHttp\Exception\GuzzleException;
6
use MeysamZnd\KaveNegarSmsProvider\Helper\Reusable;
7
use MeysamZnd\KaveNegarSmsProvider\Interfaces\Sms;
8
9
class ToMany implements Sms
10
{
11
    /**
12
     * @param string $akiKey
13
     * @param array $data
14
     * @return array
15
     * @throws GuzzleException
16
     */
17
    public function send(string $akiKey, array $data): array
18
    {
19
        $url = ($akiKey).'/sms/send.json';
20
21
        return (new Reusable())->request($url, $data);
22
    }
23
}
24