Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Tag | 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\Behavior\Translate\TranslateTrait; |
| 7 | use Cake\ORM\Entity; |
| 8 | |
| 9 | /** |
| 10 | * Tag Entity |
| 11 | * |
| 12 | * @property string $id |
| 13 | * @property string $title |
| 14 | * @property string|null $slug |
| 15 | * @property string|null $description |
| 16 | * @property string|null $name |
| 17 | * @property string|null $parent_id |
| 18 | * @property int|null $lft |
| 19 | * @property int|null $rght |
| 20 | * @property bool|null $main_menu |
| 21 | * @property string|null $image |
| 22 | * @property string|null $dir |
| 23 | * @property string|null $alt_text |
| 24 | * @property string|null $keywords |
| 25 | * @property int|null $size |
| 26 | * @property string|null $mime |
| 27 | * @property string|null $meta_title |
| 28 | * @property string|null $meta_description |
| 29 | * @property string|null $meta_keywords |
| 30 | * @property string|null $facebook_description |
| 31 | * @property string|null $linkedin_description |
| 32 | * @property string|null $twitter_description |
| 33 | * @property string|null $instagram_description |
| 34 | * @property \Cake\I18n\DateTime|null $created |
| 35 | * @property \Cake\I18n\DateTime|null $modified |
| 36 | * |
| 37 | * @property \App\Model\Entity\Article[] $articles |
| 38 | * @property \App\Model\Entity\Tag|null $parent_tag |
| 39 | * @property \App\Model\Entity\Tag[] $child_tags |
| 40 | */ |
| 41 | class Tag extends Entity |
| 42 | { |
| 43 | use SeoEntityTrait; |
| 44 | use TranslateTrait; |
| 45 | use ImageUrlTrait; |
| 46 | |
| 47 | /** |
| 48 | * Fields that can be mass assigned using newEntity() or patchEntity(). |
| 49 | * |
| 50 | * Note that when '*' is set to true, this allows all unspecified fields to |
| 51 | * be mass assigned. For security purposes, it is advised to set '*' to false |
| 52 | * (or remove it), and explicitly make individual fields accessible as needed. |
| 53 | * |
| 54 | * @var array<string, bool> |
| 55 | */ |
| 56 | protected array $_accessible = [ |
| 57 | 'title' => true, |
| 58 | 'slug' => true, |
| 59 | 'description' => true, |
| 60 | 'created' => true, |
| 61 | 'modified' => true, |
| 62 | 'articles' => true, |
| 63 | // SEO fields (managed by SeoEntityTrait) |
| 64 | 'meta_title' => true, |
| 65 | 'meta_description' => true, |
| 66 | 'meta_keywords' => true, |
| 67 | 'facebook_description' => true, |
| 68 | 'linkedin_description' => true, |
| 69 | 'twitter_description' => true, |
| 70 | 'instagram_description' => true, |
| 71 | 'dir' => true, |
| 72 | 'alt_text' => true, |
| 73 | 'keywords' => true, |
| 74 | 'size' => true, |
| 75 | 'mime' => true, |
| 76 | 'name' => true, |
| 77 | 'image' => true, |
| 78 | 'parent_id' => true, |
| 79 | 'main_menu' => true, |
| 80 | 'lft' => true, |
| 81 | 'rght' => true, |
| 82 | ]; |
| 83 | } |