Group.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP\Tables\Groups; |
| 4 | |
| 5 | use IAWP\Rows\Rows; |
| 6 | use IAWP\Statistics\Statistics; |
| 7 | /** @internal */ |
| 8 | class Group |
| 9 | { |
| 10 | private $id; |
| 11 | private $singular; |
| 12 | private $rows_class; |
| 13 | private $statistics_class; |
| 14 | public function __construct(string $id, string $singular, string $rows_class, string $statistics_class) |
| 15 | { |
| 16 | $this->id = $id; |
| 17 | $this->singular = $singular; |
| 18 | $this->rows_class = $rows_class; |
| 19 | $this->statistics_class = $statistics_class; |
| 20 | } |
| 21 | public function id() : string |
| 22 | { |
| 23 | return $this->id; |
| 24 | } |
| 25 | public function singular() : string |
| 26 | { |
| 27 | return $this->singular; |
| 28 | } |
| 29 | /** |
| 30 | * @return class-string<Rows> |
| 31 | */ |
| 32 | public function rows_class() : string |
| 33 | { |
| 34 | return $this->rows_class; |
| 35 | } |
| 36 | /** |
| 37 | * @return class-string<Statistics> |
| 38 | */ |
| 39 | public function statistics_class() : string |
| 40 | { |
| 41 | return $this->statistics_class; |
| 42 | } |
| 43 | } |
| 44 |