KaveNegarSmsProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A send() 0 4 1
1
<?php
2
3
namespace MeysamZnd\KaveNegarSmsProvider;
4
5
use MeysamZnd\KaveNegarSmsProvider\Interfaces\Sms;
6
7
class KaveNegarSmsProvider
8
{
9
    protected $send;
10
11
    /**
12
     * HostiranSmsProvider constructor.
13
     * @param Sms $send
14
     */
15
    public function __construct(Sms $send)
16
    {
17
        $this->send = $send;
18
    }
19
20
    /**
21
     * @param string $url
22
     * @param array $data
23
     * @return array
24
     */
25
    public function send(string $url, array $data): array
26
    {
27
        return $this->send->send($url, $data);
28
    }
29
}
30