| Total Complexity | 2 |
| Total Lines | 98 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class Notifications extends AbstractModel |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Apps notication type |
||
| 10 | */ |
||
| 11 | const APPS = 1; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Users notification type |
||
| 15 | */ |
||
| 16 | const USERS = 2; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * System notification type |
||
| 20 | */ |
||
| 21 | const SYSTEM = 3; |
||
| 22 | /** |
||
| 23 | * |
||
| 24 | * @var integer |
||
| 25 | */ |
||
| 26 | public $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | * @var integer |
||
| 31 | */ |
||
| 32 | public $users_id; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * |
||
| 36 | * @var integer |
||
| 37 | */ |
||
| 38 | public $companies_id; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * |
||
| 42 | * @var integer |
||
| 43 | */ |
||
| 44 | public $apps_id; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * |
||
| 48 | * @var integer |
||
| 49 | */ |
||
| 50 | public $system_module_id; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * |
||
| 54 | * @var integer |
||
| 55 | */ |
||
| 56 | public $notification_type_id; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * |
||
| 60 | * @var integer |
||
| 61 | */ |
||
| 62 | public $entity_id; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * |
||
| 66 | * @var string |
||
| 67 | */ |
||
| 68 | public $content; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * |
||
| 72 | * @var integer |
||
| 73 | */ |
||
| 74 | public $is_deleted; |
||
| 75 | |||
| 76 | /** |
||
| 77 | * |
||
| 78 | * @var string |
||
| 79 | */ |
||
| 80 | public $created_at; |
||
| 81 | |||
| 82 | /** |
||
| 83 | * |
||
| 84 | * @var string |
||
| 85 | */ |
||
| 86 | public $updated_at; |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Initialize method for model. |
||
| 90 | */ |
||
| 91 | public function initialize() |
||
| 92 | { |
||
| 93 | $this->setSource('notifications'); |
||
| 94 | } |
||
| 95 | |||
| 96 | /** |
||
| 97 | * Returns table name mapped in the model. |
||
| 98 | * |
||
| 99 | * @return string |
||
| 100 | */ |
||
| 101 | public function getSource(): string |
||
| 104 | } |
||
| 105 | } |
||
| 106 |