| Total Complexity | 7 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Coverage | 88.24% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Session implements SessionInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @Id |
||
| 15 | * @Column(type="integer") |
||
| 16 | * @GeneratedValue |
||
| 17 | */ |
||
| 18 | private int $id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @Column(type="string") |
||
| 22 | */ |
||
| 23 | private string $subject = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Column(type="boolean") |
||
| 27 | */ |
||
| 28 | private bool $active = false; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Column(type="integer") |
||
| 32 | */ |
||
| 33 | private int $user_id = 0; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @ManyToOne(targetEntity="User") |
||
| 37 | * @JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 38 | */ |
||
| 39 | private UserInterface $user; |
||
| 40 | |||
| 41 | public function getId(): int |
||
| 44 | } |
||
| 45 | |||
| 46 | 1 | public function getSubject(): string |
|
| 47 | { |
||
| 48 | 1 | return $this->subject; |
|
| 49 | } |
||
| 50 | |||
| 51 | 1 | public function setSubject(string $subject): SessionInterface |
|
| 52 | { |
||
| 53 | 1 | $this->subject = $subject; |
|
| 54 | 1 | return $this; |
|
| 55 | } |
||
| 56 | |||
| 57 | 1 | public function getActive(): bool |
|
| 60 | } |
||
| 61 | |||
| 62 | 1 | public function setActive(bool $active): SessionInterface |
|
| 63 | { |
||
| 64 | 1 | $this->active = $active; |
|
| 65 | 1 | return $this; |
|
| 66 | } |
||
| 67 | |||
| 68 | 1 | public function getUser(): UserInterface |
|
| 71 | } |
||
| 72 | |||
| 73 | 1 | public function setUser(UserInterface $user): SessionInterface |
|
| 79 |