1 | <?php |
||
19 | final class Account |
||
20 | { |
||
21 | private $name; |
||
22 | private $homePage; |
||
23 | |||
24 | public function __construct(string $name, IRL $homePage) |
||
29 | |||
30 | /** |
||
31 | * Returns the unique id or name used to log in to this account. |
||
32 | */ |
||
33 | public function getName(): string |
||
37 | 3 | ||
38 | /** |
||
39 | 3 | * Returns the home page for the system the account is on. |
|
40 | 3 | */ |
|
41 | 3 | public function getHomePage(): IRL |
|
45 | |||
46 | /** |
||
47 | * Checks if another account is equal. |
||
48 | * |
||
49 | * Two accounts are equal if and only if all of their properties are equal. |
||
50 | */ |
||
51 | public function equals(Account $account): bool |
||
63 | } |
||
64 |