Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Image
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2declare(strict_types=1);
3
4namespace App\Model\Entity;
5
6use Cake\ORM\Entity;
7
8/**
9 * Image Entity
10 *
11 * @property string $id
12 * @property string|null $name
13 * @property string|null $image
14 * @property string|null $dir
15 * @property string|null $alt_text
16 * @property string|null $keywords
17 * @property int|null $size
18 * @property string|null $mime
19 * @property \Cake\I18n\DateTime $created
20 * @property \Cake\I18n\DateTime $modified
21 *
22 * @property \App\Model\Entity\ImageGallery[] $image_galleries
23 */
24class Image extends Entity
25{
26    use ImageUrlTrait;
27
28    /**
29     * Fields that can be mass assigned using newEntity() or patchEntity().
30     *
31     * Note that when '*' is set to true, this allows all unspecified fields to
32     * be mass assigned. For security purposes, it is advised to set '*' to false
33     * (or remove it), and explicitly make individual fields accessible as needed.
34     *
35     * @var array<string, bool>
36     */
37    protected array $_accessible = [
38        'name' => true,
39        'alt_text' => true,
40        'keywords' => true,
41        'image' => true,
42        'dir' => true,
43        'size' => true,
44        'mime' => true,
45        'created' => true,
46        'modified' => true,
47    ];
48}