Validation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 6 1
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 Validation 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).'/verify/lookup.json';
20
21
        return (new Reusable())->request($url, $data);
22
    }
23
}
24