Newer
Older
framework / _support / Models / SimpleEntity.php
@Jim Parry Jim Parry on 6 May 2019 576 bytes Release 4.0.0-beta.3
<?php namespace Tests\Support\Models;

use CodeIgniter\Entity;

/**
 * Class SimpleEntity
 *
 * Simple Entity-type class for testing creating and saving entities
 * in the model so we can support Entity/Repository type patterns.
 *
 * @package Tests\Support\Models
 */
class SimpleEntity extends Entity
{
	protected $id;
	protected $name;
	protected $description;
	protected $deleted;
	protected $created_at;
	protected $updated_at;

	protected $_options = [
		'datamap' => [],
		'dates'   => [
			'created_at',
			'updated_at',
			'deleted_at',
		],
		'casts'   => [],
	];
}