| Total Complexity | 2 |
| Total Lines | 106 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class EmailTemplatesVariables extends AbstractModel |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * |
||
| 19 | * @var integer |
||
| 20 | */ |
||
| 21 | public $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $companies_id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | * @var integer |
||
| 32 | */ |
||
| 33 | public $apps_id; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * |
||
| 37 | * @var integer |
||
| 38 | */ |
||
| 39 | public $system_modules_id; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | public $users_id; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * |
||
| 49 | * @var string |
||
| 50 | */ |
||
| 51 | public $name; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * |
||
| 55 | * @var integer |
||
| 56 | */ |
||
| 57 | public $value; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * |
||
| 61 | * @var integer |
||
| 62 | */ |
||
| 63 | public $is_deleted; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * |
||
| 67 | * @var string |
||
| 68 | */ |
||
| 69 | public $created_at; |
||
| 70 | |||
| 71 | /** |
||
| 72 | * |
||
| 73 | * @var string |
||
| 74 | */ |
||
| 75 | public $updated_at; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Initialize method for model. |
||
| 79 | */ |
||
| 80 | public function initialize() |
||
| 81 | { |
||
| 82 | $this->belongsTo( |
||
| 83 | 'companies_id', |
||
| 84 | 'Canvas\Models\Companies', |
||
| 85 | 'id', |
||
| 86 | ['alias' => 'company'] |
||
| 87 | ); |
||
| 88 | |||
| 89 | $this->belongsTo( |
||
| 90 | 'apps_id', |
||
| 91 | 'Canvas\Models\Apps', |
||
| 92 | 'id', |
||
| 93 | ['alias' => 'app'] |
||
| 94 | ); |
||
| 95 | |||
| 96 | $this->belongsTo( |
||
| 97 | 'users_id', |
||
| 98 | 'Canvas\Models\Users', |
||
| 99 | 'id', |
||
| 100 | ['alias' => 'user'] |
||
| 101 | ); |
||
| 102 | |||
| 103 | $this->belongsTo( |
||
| 104 | 'system_modules_id', |
||
| 105 | 'Canvas\Models\SystemModules', |
||
| 106 | 'id', |
||
| 107 | ['alias' => 'systemModule'] |
||
| 108 | ); |
||
| 109 | |||
| 110 | $this->setSource('email_templates_variables'); |
||
| 111 | } |
||
| 112 | |||
| 113 | /** |
||
| 114 | * Returns table name mapped in the model. |
||
| 115 | * |
||
| 116 | * @return string |
||
| 117 | */ |
||
| 118 | public function getSource(): string |
||
| 121 | } |
||
| 122 | } |
||
| 123 |