Bristol SU Support Package
Repository.php
Go to the documentation of this file.
1 <?php
2 
4 
11 
17 interface Repository
18 {
19 
28  public function active(): Collection;
29 
40  public function getForParticipant(?User $user = null, ?Group $group = null, ?Role $role = null): Collection;
41 
52  public function getForAdministrator(?User $user = null, ?Group $group = null, ?Role $role = null): Collection;
53 
59  public function all(): Collection;
60 
80  public function create(array $attributes): Activity;
81 
90  public function getById($id): Activity;
91 
113  public function update($id, $attributes);
114 
123  public function delete($id);
124 }
getForAdministrator(?User $user=null, ?Group $group=null, ?Role $role=null)
getForParticipant(?User $user=null, ?Group $group=null, ?Role $role=null)