public function getRecipients($event)
    {
        $groupIds = $this->Groups()->column('ID');
        if (count($groupIds)) {
            $members = Member::get()->filter('Groups.ID', $groupIds);
            return $members;
        }
        return [];
    }
public function getRecipients($event)
    {
        $groupIds = $this->Groups()->column('ID');
        if (count($groupIds)) {
            $members = Member::get()->filter('Groups.ID', $groupIds);
            return $members;
        }
        return [];
    }
public function getRecipients ( $ event ) { $ groupIds = $ this -> Groups ( ) -> column ( 'ID' ) ; if ( count ( $ groupIds ) ) { $ members = Member :: get ( ) -> filter ( 'Groups.ID' , $ groupIds ) ; return $ members ; } return [ ] ; }
Gets the list of recipients for a given notification event, based on this object's
state.
@param string $event The Identifier of the notification being sent
@return array An array of Member objects
Gets the list of recipients for a given notification event based on this object s state .