Completed
Push — master ( 56566c...f8ca6f )
by Muhammad
06:54
created

DriverAbstract::getSignature()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace NotificationChannels\Gammu\Drivers;
4
5
use NotificationChannels\Gammu\Exceptions\CouldNotSendNotification;
6
7
abstract class DriverAbstract implements DriverInterface
8
{
9
    const PACKAGE = 'LNC-Gammu';
10
11
    const VERSION = '0.0.2';
12
13
    public $destination;
14
15
    public $content;
16
17
    public function send($phoneNumber, $content, $sender = null)
18
    {
19
    }
20
21
    public function getSignature()
22
    {
23
        return self::PACKAGE.'/'.self::VERSION;
24
    }
25
26
    public function setDestination($phoneNumber)
27
    {
28
        if (empty($phoneNumber)) {
29
            throw CouldNotSendNotification::destinationNotProvided();
30
        }
31
32
        return $this;
33
    }
34
35
    public function getDestination()
36
    {
37
    }
38
39
    public function setContent($content)
40
    {
41
        if (empty($content)) {
42
            throw CouldNotSendNotification::contentNotProvided();
43
        }
44
45
        return $this;
46
    }
47
48
    public function getContent()
49
    {
50
    }
51
}
52