| Total Complexity | 1 |
| Total Lines | 71 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class HarvestClient extends Model |
||
| 19 | { |
||
| 20 | // Properties |
||
| 21 | // ========================================================================= |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var integer Unique ID for the client. |
||
| 25 | */ |
||
| 26 | public $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string A textual description of the client. |
||
| 30 | */ |
||
| 31 | public $name; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var boolean Whether the client is active or archived. |
||
| 35 | */ |
||
| 36 | public $is_active; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var string The physical address for the client. |
||
| 40 | */ |
||
| 41 | public $address; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var string The currency code associated with this client. |
||
| 45 | */ |
||
| 46 | public $currency; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var string Date and time the client was created. |
||
| 50 | * TODO: convert to actual \DateTime |
||
| 51 | */ |
||
| 52 | public $created_at; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @var string Date and time the client was last updated. |
||
| 56 | * TODO: convert to actual \DateTime |
||
| 57 | */ |
||
| 58 | public $updated_at; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @var string |
||
| 62 | */ |
||
| 63 | public $statement_key; |
||
| 64 | |||
| 65 | |||
| 66 | // Public Methods |
||
| 67 | // ========================================================================= |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritdoc |
||
| 71 | */ |
||
| 72 | public function rules() |
||
| 93 |