Passed
Push — master ( 1aa207...da253c )
by Manuel
03:24
created

Order   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getItems() 0 3 1
A setItems() 0 5 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
    {
18
        return $this->items;
19
    }
20
21
    public function setItems(?array $items): self
22
    {
23
        $this->items = $items;
24
25
        return $this;
26
    }
27
}
28