Group.php
50 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 $title_column; |
| 13 | private $rows_class; |
| 14 | private $statistics_class; |
| 15 | public function __construct(string $id, string $singular, string $title_column, string $rows_class, string $statistics_class) |
| 16 | { |
| 17 | $this->id = $id; |
| 18 | $this->singular = $singular; |
| 19 | $this->title_column = $title_column; |
| 20 | $this->rows_class = $rows_class; |
| 21 | $this->statistics_class = $statistics_class; |
| 22 | } |
| 23 | public function id() : string |
| 24 | { |
| 25 | return $this->id; |
| 26 | } |
| 27 | public function singular() : string |
| 28 | { |
| 29 | return $this->singular; |
| 30 | } |
| 31 | public function title_column() : string |
| 32 | { |
| 33 | return $this->title_column; |
| 34 | } |
| 35 | /** |
| 36 | * @return class-string<Rows> |
| 37 | */ |
| 38 | public function rows_class() : string |
| 39 | { |
| 40 | return $this->rows_class; |
| 41 | } |
| 42 | /** |
| 43 | * @return class-string<Statistics> |
| 44 | */ |
| 45 | public function statistics_class() : string |
| 46 | { |
| 47 | return $this->statistics_class; |
| 48 | } |
| 49 | } |
| 50 |