| 1 | <?php  | 
            ||
| 12 | 	class Group { | 
            ||
| 13 | |||
| 14 | protected $items = [], $count = 0;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * Constructor  | 
            ||
| 18 | */  | 
            ||
| 19 | |||
| 20 | 		public function __construct() { | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * Cloner  | 
            ||
| 27 | */  | 
            ||
| 28 | |||
| 29 | 		public function __clone() { | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * Add an item  | 
            ||
| 36 | *  | 
            ||
| 37 | * @return the current group object  | 
            ||
| 38 | */  | 
            ||
| 39 | |||
| 40 | 		public function addItem(Block $item) : Group { | 
            ||
| 46 | |||
| 47 | /**  | 
            ||
| 48 | * Add multiple items  | 
            ||
| 49 | *  | 
            ||
| 50 | * @return the current group object  | 
            ||
| 51 | */  | 
            ||
| 52 | |||
| 53 | 		public function addItems(array $items) : Group { | 
            ||
| 59 | |||
| 60 | /**  | 
            ||
| 61 | * Clear the items list  | 
            ||
| 62 | *  | 
            ||
| 63 | * @return the current group object  | 
            ||
| 64 | */  | 
            ||
| 65 | |||
| 66 | 		 public function removeItems() : Group { | 
            ||
| 72 | |||
| 73 | /**  | 
            ||
| 74 | * Set items list  | 
            ||
| 75 | *  | 
            ||
| 76 | * @return the current group object  | 
            ||
| 77 | */  | 
            ||
| 78 | |||
| 79 | 		public function setItems(array $items) : Group { | 
            ||
| 85 | |||
| 86 | /**  | 
            ||
| 87 | * Get the items list  | 
            ||
| 88 | */  | 
            ||
| 89 | |||
| 90 | 		public function getItems() : array { | 
            ||
| 94 | |||
| 95 | /**  | 
            ||
| 96 | * Get the items count  | 
            ||
| 97 | */  | 
            ||
| 98 | |||
| 99 | 		 public function getCount() : int { | 
            ||
| 103 | |||
| 104 | /**  | 
            ||
| 105 | * Get the group contents  | 
            ||
| 106 | */  | 
            ||
| 107 | |||
| 108 | 		public function getContents() : string { | 
            ||
| 120 | }  | 
            ||
| 121 | }  | 
            ||
| 122 |