public function __construct()
 {
     $this->accessories = array(ReservationAccessoryResponse::Example());
     $this->attachments = array(AttachmentResponse::Example());
     $this->customAttributes = array(CustomAttributeResponse::Example());
     $this->description = 'reservation description';
     $this->endDateTime = Date::Now()->ToIso();
     $this->invitees = array(ReservationUserResponse::Example());
     $this->isRecurring = true;
     $this->owner = ReservationUserResponse::Example();
     $this->participants = array(ReservationUserResponse::Example());
     $this->recurrenceRule = RecurrenceRequestResponse::Example();
     $this->referenceNumber = 'refnum';
     $this->requiresApproval = true;
     $this->resourceId = 123;
     $this->resources = array(ResourceItemResponse::Example());
     $this->scheduleId = 123;
     $this->startDateTime = Date::Now()->ToIso();
     $this->title = 'reservation title';
     $this->startReminder = ReminderRequestResponse::Example();
     $this->endReminder = ReminderRequestResponse::Example();
     $this->allowParticipation = true;
 }
Exemple #2
0
 public function __construct()
 {
     $date = Date::Now()->ToIso();
     $this->id = 1;
     $this->emailAddress = '*****@*****.**';
     $this->firstName = 'first';
     $this->lastName = 'last';
     $this->language = 'language_code';
     $this->lastLogin = $date;
     $this->organization = 'organization';
     $this->phoneNumber = 'phone';
     $this->statusId = 'statusId';
     $this->timezone = 'timezone';
     $this->username = '******';
     $this->position = 'position';
     $this->icsUrl = 'webcal://url/to/calendar';
     $this->customAttributes = array(CustomAttributeResponse::Example());
     $this->permissions = array(ResourceItemResponse::Example());
     $this->groups = array(GroupItemResponse::Example());
 }