コード例 #1
0
ファイル: ResourceResponse.php プロジェクト: hugutux/booked
 public function __construct()
 {
     $interval = new TimeInterval(120);
     $length = $interval->__toString();
     $this->resourceId = 123;
     $this->name = 'resource name';
     $this->location = 'location';
     $this->contact = 'contact';
     $this->notes = 'notes';
     $this->maxLength = $length;
     $this->minLength = $length;
     $this->maxNotice = $length;
     $this->minNotice = $length;
     $this->requiresApproval = true;
     $this->allowMultiday = true;
     $this->maxParticipants = 10;
     $this->description = 'resource description';
     $this->scheduleId = 123;
     $this->statusId = ResourceStatus::AVAILABLE;
     $this->statusReasonId = 3;
     $this->customAttributes = array(CustomAttributeResponse::Example());
 }