Advertisement
thatside_ua

Customer.php

Jan 17th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. namespace app\models\customer;
  3.  
  4. /**
  5.  * Class Customer
  6.  * @package app\models\customer
  7.  *
  8.  * @property string $name
  9.  * @property \DateTime $birth_date
  10.  * @property string $notes
  11.  * @property PhoneRecord[] $phones
  12.  */
  13. class Customer {
  14.     /** @var string */
  15.     public $name;
  16.  
  17.     /** @var \DateTime */
  18.     public $birth_date;
  19.  
  20.     /** @var string */
  21.     public $notes = '';
  22.  
  23.     /** @var PhoneRecord[]  */
  24.     public $phones = [];
  25.  
  26.     public function __construct($name, $birthDate) {
  27.         $this->name = $name;
  28.         $this->birth_date = $birthDate;
  29.     }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement