public function byActivity(Activity $activity): self
    {
        $this->filter['activity'] = $activity->getId()->getValue();

        return $this;
    }
public function byActivity(Activity $activity): self
    {
        $this->filter['activity'] = $activity->getId()->getValue();

        return $this;
    }
public function byActivity ( Activity $ activity ) : self { $ this -> filter [ 'activity' ] = $ activity -> getId ( ) -> getValue ( ) ; return $ this ; }
Filter by an Activity.
Filter by an Activity .