1 | <?php |
||
34 | class Group |
||
35 | { |
||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $groupName = ''; |
||
40 | |||
41 | /** |
||
42 | * @var int |
||
43 | */ |
||
44 | protected $resultsPerPage = 10; |
||
45 | |||
46 | /** |
||
47 | * @var GroupItemCollection |
||
48 | */ |
||
49 | protected $groupItems = null; |
||
50 | |||
51 | /** |
||
52 | * @var array |
||
53 | */ |
||
54 | protected $groupConfiguration = []; |
||
55 | |||
56 | /** |
||
57 | * Group constructor. |
||
58 | * @param string $groupName |
||
59 | * @param int $resultsPerPage |
||
60 | */ |
||
61 | public function __construct(string $groupName, int $resultsPerPage = 10) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getGroupName(): string |
||
75 | |||
76 | /** |
||
77 | * @param string $groupName |
||
78 | */ |
||
79 | public function setGroupName(string $groupName) |
||
83 | |||
84 | /** |
||
85 | * @return GroupItemCollection |
||
86 | */ |
||
87 | public function getGroupItems(): GroupItemCollection |
||
91 | |||
92 | /** |
||
93 | * @param GroupItemCollection $groupItems |
||
94 | */ |
||
95 | public function setGroupItems(GroupItemCollection $groupItems) |
||
99 | |||
100 | /** |
||
101 | * @param GroupItem $groupItem |
||
102 | */ |
||
103 | public function addGroupItem(GroupItem $groupItem) |
||
107 | |||
108 | /** |
||
109 | * @return int |
||
110 | */ |
||
111 | public function getResultsPerPage(): int |
||
115 | |||
116 | /** |
||
117 | * @param int $resultsPerPage |
||
118 | */ |
||
119 | public function setResultsPerPage(int $resultsPerPage) |
||
123 | } |
||
124 |