| 1 | <?php |
||
| 7 | class MiniGameId |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $id; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Constructor |
||
| 16 | */ |
||
| 17 | 9 | public function __construct() |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param MiniGameId $id |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 3 | public function equals(MiniGameId $id) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 6 | public function __toString() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Static constructor. |
||
| 40 | * |
||
| 41 | * @param string $id |
||
| 42 | * |
||
| 43 | * @return MiniGameId |
||
| 44 | */ |
||
| 45 | 9 | public static function create($id = null) |
|
| 53 | } |
||
| 54 |