Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| ContactListIntegrationModel | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Modules\ContactModule\Models; |
| 4 | |
| 5 | use CodeIgniter\Model; |
| 6 | use App\Modules\ContactModule\Entities\ContactListIntegrationEntity; |
| 7 | |
| 8 | class ContactListIntegrationModel extends Model |
| 9 | { |
| 10 | protected $table = 'contact_list_integration'; |
| 11 | |
| 12 | protected $primaryKey = 'id'; |
| 13 | |
| 14 | protected $returnType = ContactListIntegrationEntity::class; |
| 15 | |
| 16 | protected $allowedFields = [ |
| 17 | 'contact_list_id', |
| 18 | 'type', |
| 19 | 'provider', |
| 20 | 'is_active', |
| 21 | 'config', |
| 22 | ]; |
| 23 | |
| 24 | protected $useTimestamps = true; |
| 25 | |
| 26 | // ←←← CORRECTION ICI |
| 27 | protected array $casts = [ |
| 28 | 'config' => 'json', |
| 29 | 'is_active' => 'boolean', |
| 30 | ]; |
| 31 | } |