HostiranSmsProvider::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace MeysamZnd\HostiranSmsProvider;
4
5
use MeysamZnd\HostiranSmsProvider\Interfaces\Sms;
6
7
class HostiranSmsProvider
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