| 1 | <?php |
||
| 30 | class AccessToken extends Entity |
||
| 31 | { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Fields that can be mass assigned using newEntity() or patchEntity(). |
||
| 35 | * |
||
| 36 | * Note that when '*' is set to true, this allows all unspecified fields to |
||
| 37 | * be mass assigned. For security purposes, it is advised to set '*' to false |
||
| 38 | * (or remove it), and explicitly make individual fields accessible as needed. |
||
| 39 | * |
||
| 40 | * @var array |
||
| 41 | */ |
||
| 42 | protected $_accessible = [ |
||
| 43 | '*' => true, |
||
| 44 | 'id' => false |
||
| 45 | ]; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Fields that are excluded from JSON versions of the entity. |
||
| 49 | * |
||
| 50 | * @var array |
||
| 51 | */ |
||
| 52 | protected $_hidden = [ |
||
| 53 | 'token' |
||
| 54 | ]; |
||
| 55 | } |
||
| 56 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.