1 | <?php |
||
9 | trait GroupEntityTrait |
||
10 | { |
||
11 | protected $id; |
||
12 | /** @var UserEntityInterface[] */ |
||
13 | protected $users; |
||
14 | protected $creationDatetime; |
||
15 | protected $modificationDatetime; |
||
16 | /** @var UserRepositoryInterface */ |
||
17 | protected $userRepository; |
||
18 | |||
19 | public function __construct(UserRepositoryInterface $userRepository = null) |
||
24 | |||
25 | /** @return int */ |
||
26 | public function getId() |
||
30 | |||
31 | public function setId(int $id): GroupEntityInterface |
||
36 | |||
37 | /** @return UserEntityInterface[] */ |
||
38 | public function getUsers() |
||
47 | |||
48 | public function getCreationDatetime(): DateTime |
||
52 | |||
53 | public function setCreationDatetime(DateTime $creationDatetime): GroupEntityInterface |
||
58 | |||
59 | public function getModificationDatetime(): DateTime |
||
63 | |||
64 | public function setModificationDatetime(DateTime $modificationDatetime): GroupEntityInterface |
||
69 | |||
70 | public function setUserRepository(UserRepositoryInterface $userRepository): GroupEntityInterface |
||
75 | |||
76 | public function toArray(): array |
||
84 | |||
85 | public function jsonSerialize() |
||
89 | } |
||
90 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.