castopod/tests/_support/Models/ExampleModel.php
Yassine Doghri aa1612342e
style(ecs): add easy-coding-standard to enforce coding style rules for php
- update .devcontainer settings: remove auto-formatting
for php + set intelephense as default formatter
- remove prettier php plugin as it lacks php 8 support
- add captain hook action for checking style pre-commit
- fix style with ecs on all files except views
2021-06-11 09:34:48 +00:00

54 lines
798 B
PHP

<?php
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;
}