Response::setResponseHeader()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ticketpark\SaferpayJson\Response;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
use Ticketpark\SaferpayJson\Response\Container\ResponseHeader;
10
11
abstract class Response
12
{
13
    /**
14
     * @var ResponseHeader
15
     * @SerializedName("ResponseHeader")
16
     * @Type("Ticketpark\SaferpayJson\Response\Container\ResponseHeader")
17
     */
18
    protected $responseHeader;
19
20
    public function getResponseHeader(): ResponseHeader
21
    {
22
        return $this->responseHeader;
23
    }
24
25
    public function setResponseHeader(ResponseHeader $responseHeader): self
26
    {
27
        $this->responseHeader = $responseHeader;
28
29
        return $this;
30
    }
31
}
32