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

Order   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getItems() 0 2 1
A setItems() 0 4 1
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