Passed
Pull Request — master (#34)
by
unknown
04:37
created

Order::setItems()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class Order
9
{
10
    /**
11
     * @var array<OrderItem>|null
12
     * @SerializedName("Items")
13
     */
14
    private $items = [];
15
16
    public function getItems(): ?array {
17
        return $this->items;
18
    }
19
20
    public function setItems(?array $items): self {
21
        $this->items = $items;
22
23
        return $this;
24
    }
25
26
27
28
}
29