Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Slug | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | declare(strict_types=1); |
| 3 | |
| 4 | namespace App\Model\Entity; |
| 5 | |
| 6 | use Cake\ORM\Entity; |
| 7 | |
| 8 | /** |
| 9 | * Slug Entity |
| 10 | * |
| 11 | * @property string $id |
| 12 | * @property string $model |
| 13 | * @property string $foreign_key |
| 14 | * @property string $slug |
| 15 | * @property \Cake\I18n\DateTime $created |
| 16 | */ |
| 17 | class Slug extends Entity |
| 18 | { |
| 19 | /** |
| 20 | * Fields that can be mass assigned using newEntity() or patchEntity(). |
| 21 | * |
| 22 | * Note that when '*' is set to true, this allows all unspecified fields to |
| 23 | * be mass assigned. For security purposes, it is advised to set '*' to false |
| 24 | * (or remove it), and explicitly make individual fields accessible as needed. |
| 25 | * |
| 26 | * @var array<string, bool> |
| 27 | */ |
| 28 | protected array $_accessible = [ |
| 29 | 'model' => true, |
| 30 | 'foreign_key' => true, |
| 31 | 'slug' => true, |
| 32 | 'created' => true, |
| 33 | ]; |
| 34 | } |