Group.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\IAWP\Tables\Groups; |
| 4 | |
| 5 | class Group |
| 6 | { |
| 7 | private $id; |
| 8 | private $name; |
| 9 | public function __construct(string $id, string $name) |
| 10 | { |
| 11 | $this->id = $id; |
| 12 | $this->name = $name; |
| 13 | } |
| 14 | public function id() : string |
| 15 | { |
| 16 | return $this->id; |
| 17 | } |
| 18 | public function has_id(string $id) : bool |
| 19 | { |
| 20 | return $this->id === $id; |
| 21 | } |
| 22 | public function name() : string |
| 23 | { |
| 24 | return $this->name; |
| 25 | } |
| 26 | } |
| 27 |