|
|
|
@ -11,18 +11,16 @@ class AccountUser implements User {
|
|
|
|
|
private string $name;
|
|
|
|
|
private Url $profilePicture;
|
|
|
|
|
private int $age;
|
|
|
|
|
private array $teams;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param string $name
|
|
|
|
|
* @param Url $profilePicture
|
|
|
|
|
* @param int $age
|
|
|
|
|
*/
|
|
|
|
|
public function __construct(string $name, Url $profilePicture, int $age, array $teams) {
|
|
|
|
|
public function __construct(string $name, Url $profilePicture, int $age) {
|
|
|
|
|
$this->name = $name;
|
|
|
|
|
$this->profilePicture = $profilePicture;
|
|
|
|
|
$this->age = $age;
|
|
|
|
|
$this->teams = $teams;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -50,8 +48,5 @@ class AccountUser implements User {
|
|
|
|
|
$this->age = $age;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getTeams(): array {
|
|
|
|
|
return $this->teams;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|