27 lines
515 B
PHP
27 lines
515 B
PHP
<?php
|
|
|
|
namespace App\Modules\Auth\Entities;
|
|
|
|
use CodeIgniter\Entity\Entity;
|
|
|
|
/**
|
|
* Role Entity
|
|
*/
|
|
class Role extends Entity
|
|
{
|
|
public const CODE_ADMIN = 'ADMIN';
|
|
public const CODE_WALI_KELAS = 'WALI_KELAS';
|
|
public const CODE_GURU_BK = 'GURU_BK';
|
|
public const CODE_GURU_MAPEL = 'GURU_MAPEL';
|
|
public const CODE_ORANG_TUA = 'ORANG_TUA';
|
|
|
|
protected $allowedFields = [
|
|
'role_code',
|
|
'role_name',
|
|
];
|
|
|
|
protected $casts = [
|
|
'id' => 'integer',
|
|
];
|
|
}
|