コード例 #1
0
ファイル: CallDto.php プロジェクト: bambamboole/ctcrm
 public function jsonSerialize()
 {
     return array('id' => $this->id, 'number_id' => $this->numberId, 'company_id' => $this->companyId, 'timestamp' => $this->timestamp, 'duration' => $this->duration, 'note' => $this->note, 'state' => $this->state, 'direction' => $this->direction, 'contact' => array('id' => $this->contact->getId(), 'company_id' => $this->contact->getCompanyId(), 'contact_group_id' => $this->contact->getContactGroupId(), 'contact_title_id' => $this->contact->getContactTitleId(), 'email' => $this->contact->getEmail(), 'first_name' => $this->contact->getFirstName(), 'info' => $this->contact->getInfo(), 'number_list' => $this->contact->getNumberList(), 'last_name' => $this->contact->getLastName()));
 }