, jobs?: array, after?: \DateTimeImmutable|null, before?: \DateTimeImmutable|null} $filters * * @return array */ public function findByAccompanyingPeriod(AccompanyingPeriod $period, string $role, ?int $start = 0, ?int $limit = 1000, array $orderBy = ['date' => 'DESC'], array $filters = []): array; /** * @param array{my_activities?: bool, types?: array, jobs?: array, after?: \DateTimeImmutable|null, before?: \DateTimeImmutable|null} $filters */ public function countByAccompanyingPeriod(AccompanyingPeriod $period, string $role, array $filters = []): int; /** * @param array{my_activities?: bool, types?: array, jobs?: array, after?: \DateTimeImmutable|null, before?: \DateTimeImmutable|null} $filters */ public function countByPerson(Person $person, string $role, array $filters = []): int; /** * Return a list of activities, simplified as array (not object). * * The aim of this method is to get a long list of activities and keep performance. * * @return array an array of array, each item representing an activity */ public function findByAccompanyingPeriodSimplified(AccompanyingPeriod $period, ?int $limit = 1000): array; /** * @param array{my_activities?: bool, types?: array, jobs?: array, after?: \DateTimeImmutable|null, before?: \DateTimeImmutable|null} $filters * * @return array */ public function findByPerson(Person $person, string $role, ?int $start = 0, ?int $limit = 1000, array $orderBy = ['date' => 'DESC'], array $filters = []): array; /** * Return a list of the type for the activities associated to person or accompanying period. * * @return array */ public function findActivityTypeByAssociated(AccompanyingPeriod|Person $associated): array; /** * Return a list of the user job for the activities associated to person or accompanying period. * * Associated mean the job: * - of the creator; * - of the user (activity.user) * - of all the users * * @return array */ public function findUserJobByAssociated(AccompanyingPeriod|Person $associated): array; }