Total Complexity | 6 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
14 | class Collection extends AbstractComponent |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Column() |
||
18 | * @var string |
||
19 | */ |
||
20 | private $resource; |
||
21 | |||
22 | /** |
||
23 | * @ORM\Column(type="integer") |
||
24 | * @var int |
||
25 | */ |
||
26 | private $perPage = 12; |
||
27 | |||
28 | /** |
||
29 | * @var array|\Traversable |
||
30 | */ |
||
31 | private $collection; |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | 1 | public function getResource(): string |
|
37 | { |
||
38 | 1 | return $this->resource; |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $resource |
||
43 | */ |
||
44 | 1 | public function setResource(string $resource): void |
|
45 | { |
||
46 | 1 | $this->resource = $resource; |
|
47 | 1 | } |
|
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | 1 | public function getPerPage(): int |
|
53 | { |
||
54 | 1 | return $this->perPage; |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param int $perPage |
||
59 | */ |
||
60 | 1 | public function setPerPage(int $perPage): void |
|
61 | { |
||
62 | 1 | $this->perPage = $perPage; |
|
63 | 1 | } |
|
64 | |||
65 | /** |
||
66 | * @return array|\Traversable |
||
67 | */ |
||
68 | public function getCollection() |
||
69 | { |
||
70 | return $this->collection; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param array|\Traversable $collection |
||
75 | */ |
||
76 | public function setCollection($collection): void |
||
79 | } |
||
80 | } |
||
81 |