adding example apps, fixing powerup issues
[feisty_meow.git] / production / example_apps / shared_calendar / src / Model / Entity / User.php
1 <?php
2 namespace App\Model\Entity;
3
4 use Cake\ORM\Entity;
5
6 /**
7  * User Entity
8  *
9  * @property int $id
10  * @property string $name
11  * @property string $token
12  * @property \Cake\I18n\FrozenTime $created
13  * @property \Cake\I18n\FrozenTime $modified
14  */
15 class User extends Entity
16 {
17
18     /**
19      * Fields that can be mass assigned using newEntity() or patchEntity().
20      *
21      * Note that when '*' is set to true, this allows all unspecified fields to
22      * be mass assigned. For security purposes, it is advised to set '*' to false
23      * (or remove it), and explicitly make individual fields accessible as needed.
24      *
25      * @var array
26      */
27     protected $_accessible = [
28         '*' => true,
29         'id' => false
30     ];
31
32     /**
33      * Fields that are excluded from JSON versions of the entity.
34      *
35      * @var array
36      */
37     protected $_hidden = [
38         'token'
39     ];
40 }