1 | <?php |
||
7 | class PlayerId |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $id; |
||
13 | |||
14 | /** |
||
15 | * Constructor |
||
16 | */ |
||
17 | 15 | public function __construct() |
|
20 | |||
21 | /** |
||
22 | * @param PlayerId $id |
||
23 | * @return bool |
||
24 | */ |
||
25 | 3 | public function equals(PlayerId $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 PlayerId |
||
44 | */ |
||
45 | 15 | public static function create($id = null) |
|
53 | } |
||
54 |