new branch where the documentation/conception will be updated
continuous-integration/drone/push Build is passing Details

pull/93/head
Maël DAIM 1 year ago
parent ce3570e515
commit a123145acd

@ -29,18 +29,11 @@ class Account {
class Member { class Member {
- userId: int - userId: int
- teamId: int - teamId: int
- role : string
+ __construct(role : MemberRole) + __construct(role : string)
+ getUserId(): int + getUserId(): int
+ getTeamId(): int + getTeamId(): int
+ getRole(): MemberRole + getRole(): string
}
Member --> "- role" MemberRole
enum MemberRole {
PLAYER
COACH
} }
@ -48,28 +41,34 @@ class TeamInfo {
- creationDate: int - creationDate: int
- name: string - name: string
- picture: string - picture: string
- mainColor : string
- secondColor : string
+ getName(): string + getName(): string
+ getPicture(): string + getPicture(): string
+ getMainColor(): Color + getMainColor(): string
+ getSecondColor(): Color + getSecondColor(): string
} }
TeamInfo --> "- mainColor" Color
TeamInfo --> "- secondaryColor" Color
class Team { class Team {
getInfo(): TeamInfo + __construct()
listMembers(): Member[] + getInfo(): TeamInfo
+ listMembers(): Member[]
} }
Team --> "- info" TeamInfo Team --> "- info" TeamInfo
Team --> "- members *" Member Team --> "- members *" Member
class Color { class User{
- value: int - id : int
- name : string
+ getValue(): int - email : string
- profilePicture : string
+ __construct(id : int,name : string,email: string,profilePicture:string)
+ getId() : id
+ getName() : string
+ getEmail() : string
+ getProfilePicture() : string
} }
@enduml @enduml

@ -24,7 +24,6 @@ class TeamInfo implements \JsonSerializable {
$this->secondColor = $secondColor; $this->secondColor = $secondColor;
} }
public function getId(): int { public function getId(): int {
return $this->id; return $this->id;
} }
@ -48,6 +47,4 @@ class TeamInfo implements \JsonSerializable {
public function jsonSerialize() { public function jsonSerialize() {
return get_object_vars($this); return get_object_vars($this);
} }
} }

Loading…
Cancel
Save