Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| SmtpSettingModel | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Models; |
| 4 | |
| 5 | use CodeIgniter\Model; |
| 6 | use App\Entities\SmtpSettingEntity; |
| 7 | |
| 8 | class SmtpSettingModel extends Model |
| 9 | { |
| 10 | protected $table = 'smtp_setting'; |
| 11 | |
| 12 | protected $primaryKey = 'id'; |
| 13 | |
| 14 | protected $returnType = SmtpSettingEntity::class; |
| 15 | |
| 16 | protected $allowedFields = [ |
| 17 | |
| 18 | 'host', |
| 19 | 'username', |
| 20 | 'password', |
| 21 | 'port', |
| 22 | 'crypto', |
| 23 | 'from_email', |
| 24 | 'from_name', |
| 25 | 'is_active' |
| 26 | ]; |
| 27 | |
| 28 | protected $useTimestamps = true; |
| 29 | } |