/** * Override the update function so that we call PATCH rather than PUT. * * @param string $method * Method used. * @return EWSObject */ public function update($method = 'PATCH') { parent::update($method); }
/** * Simple function to return an array of Events based on search criterias. * * @param EWSClient $client * Client. * @param array $queries * Array of query arrays for building the query string. * @param string $class * Class name of the objects to create with the results. * @param string $path * Path to the API. * * @return array * * @throws EWSClientError */ public static function searches($client, $queries, $class = '\\Cruk\\EventSdk\\Event', $path = '/events.json') { return parent::searches($client, $queries, $class, $path); }
/** * Registration constructor. * @param EWSClient $client * @param mixed $data * @param Event $event */ public function __construct(EWSClient $client, $data, Event $event) { $this->event = $event; parent::__construct($client, $data); }
/** * Simple function to return an array of Participants based on search criteria. * * @param EWSClient $client * Client. * @param array $query * Query array for building the query string. * @param string $class * Class name of the objects to create with the results. * @param string $path * Path to the API. * * @return array * * @throws EWSClientError */ public static function search($client, $query, $class = '\\Cruk\\EventSdk\\Participant', $path = '/participantInfos.json') { return parent::search($client, $query, $class, $path); }
/** * Donation constructor. * @param EWSClient $client * @param $data * @param Event $event * @param Registration $registration */ public function __construct(EWSClient $client, $data, Event $event, Registration $registration) { $this->event = $event; $this->registration = $registration; parent::__construct($client, $data); $this->registration->setDonation($this); }