mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00

- 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
54 lines
798 B
PHP
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;
|
|
}
|