mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
56 lines
824 B
PHP
56 lines
824 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Support\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class ExampleModel extends Model
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'factories';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'id';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $returnType = 'object';
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $useSoftDeletes = false;
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
protected $allowedFields = ['name', 'uid', 'class', 'icon', 'summary'];
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $useTimestamps = true;
|
|
|
|
/**
|
|
* @var mixed[]
|
|
*/
|
|
protected $validationRules = [];
|
|
|
|
/**
|
|
* @var mixed[]
|
|
*/
|
|
protected $validationMessages = [];
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $skipValidation = false;
|
|
}
|