MessageWasSent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
ccs 0
cts 5
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Author: Facundo J Gonzalez
4
 * Date: 17/11/2017.
5
 */
6
7
namespace NotificationChannels\SMSC\Events;
8
9
use NotificationChannels\SMSC\SMSCMessageInterface;
10
use NotificationChannels\SMSC\Clients\SMSCApiResponseInterface;
11
12
/**
13
 * Class MessageWasSent.
14
 */
15
class MessageWasSent
16
{
17
    /**
18
     * The sms message.
19
     *
20
     * @var SMSCMessageInterface
21
     */
22
    public $message;
23
24
    /**
25
     * The Api response.
26
     *
27
     * @var SMSCApiResponseInterface
28
     */
29
    public $response;
30
31
    /**
32
     * MessageWasSent constructor.
33
     *
34
     * @param SMSCMessageInterface     $message
35
     * @param SMSCApiResponseInterface $response
36
     */
37
    public function __construct(SMSCMessageInterface $message, SMSCApiResponseInterface $response)
38
    {
39
        $this->message = $message;
40
        $this->response = $response;
41
    }
42
}
43