Test Setup Failed
Pull Request — master (#43)
by Michael
01:51
created

SendNotificationException::setRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
declare(strict_types = 1);
4
5
/*
6
 * This file is part of the AppleApnPush package
7
 *
8
 * (c) Vitaliy Zhuk <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code
12
 */
13
namespace Apple\ApnPush\Exception\SendNotification;
14
15
use Apple\ApnPush\Protocol\Http\Request;
16
17
/**
18
 * Abstract exception for control all errors in send notification processes.
19
 */
20
abstract class SendNotificationException extends \Exception
21
{
22
    /**
23
     * @var Request
24
     */
25
    protected $request;
26
27
    /**
28
     * @param Request $request
29
     * @return SendNotificationException
30
     */
31
    public function setRequest(Request $request)
32
    {
33
        $this->request = $request;
34
35
        return $this;
36
    }
37
38
    /**
39
     * @return Request
40
     */
41
    public function getRequest()
42
    {
43
        return $this->request;
44
    }
45
}
46