Ejemplo n.º 1
0
 public function testCorrupt()
 {
     $node = new DataNodeResponse();
     $node->currentState = 3;
     $this->assertFalse($node->isNodeArchived());
     $this->assertFalse($node->isNodeActive());
     $this->assertTrue($node->isNodeCorrupt());
     $this->assertFalse($node->isNodePending());
 }
 /**
  * Hydrate the public properties
  *
  * @param $data
  */
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->offer)) {
         $this->offer = ProductOfferResponse::make($this->offer);
     }
 }
 public function hydrate($data)
 {
     parent::hydrate($data);
     if ($this->frequency !== null) {
         $this->frequency = PaycheckFrequencyResponse::make($this->frequency);
     }
 }
Ejemplo n.º 4
0
 /**
  * @param $data
  */
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->employee)) {
         $this->employee = EmployeeResponse::make($this->employee);
     }
 }
Ejemplo n.º 5
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if ($this->fields) {
         foreach ($this->fields as $k => $field) {
             $this->fields[$k] = FormField::make($field);
         }
     }
 }
Ejemplo n.º 6
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->user)) {
         $this->user = AuthUserResponse::make($this->user);
     }
     if (!empty($this->emailData)) {
         $this->emailData = EmailResponse::make($this->emailData);
     }
 }
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->contact)) {
         $this->contact = MessengerContactResponse::make($this->contact);
     }
     if (!empty($this->campaign)) {
         $this->campaign = MessengerCampaignResponse::make($this->campaign);
     }
 }
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->contact)) {
         $this->contact = MessengerContactResponse::make($this->contact);
     }
     if (!empty($this->list)) {
         $this->list = MessengerListResponse::make($this->list);
     }
 }
Ejemplo n.º 9
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->contact)) {
         $this->contact = MessengerContactResponse::make($this->contact);
     }
     if (!empty($this->service)) {
         $this->service = MessengerServiceResponse::make($this->service);
     }
 }
Ejemplo n.º 10
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->department)) {
         $this->department = DepartmentResponse::make($this->department);
     }
     if (!empty($this->customer)) {
         $this->customer = CustomerResponse::make($this->customer);
     }
     if (!empty($this->currentAgent)) {
         $this->currentAgent = EmployeeResponse::make($this->currentAgent);
     }
 }
Ejemplo n.º 11
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->discounts)) {
         $this->discounts = InvoiceDiscountsResponse::make($this->discounts);
     }
     if (!empty($this->refunds)) {
         $this->refunds = InvoiceRefundsResponse::make($this->refunds);
     }
     if (!empty($this->payments)) {
         $this->payments = InvoicePaymentsResponse::make($this->payments);
     }
     if (!empty($this->credits)) {
         $this->credits = InvoiceCreditNotesResponse::make($this->credits);
     }
     if (!empty($this->items)) {
         $this->items = InvoiceItemsResponse::make($this->items);
     }
     if (!empty($this->taxes)) {
         $this->taxes = InvoiceTaxesRepsonse::make($this->taxes);
     }
 }
Ejemplo n.º 12
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     $this->_buildProperty('fields', '\\Fortifi\\FortifiApi\\Payment\\Responses\\Services\\PaymentServiceFieldResponse');
     $this->_buildProperty('configurationFields', '\\Fortifi\\FortifiApi\\Payment\\Responses\\Services\\PaymentServiceFieldResponse');
 }
Ejemplo n.º 13
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     $this->_buildProperty('actions', '\\Fortifi\\FortifiApi\\Workflow\\Responses\\WorkflowActionResponse');
 }
Ejemplo n.º 14
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->phone)) {
         $this->phone = PhoneResponse::make($this->phone);
     }
 }
 /**
  * Hydrate the public properties
  *
  * @param $data
  */
 public function hydrate($data)
 {
     parent::hydrate($data);
     $this->values = ValueAs::arr($this->values);
 }