Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
Comment
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 * Comment Entity
10 *
11 * @property string $id
12 * @property string $foreign_key
13 * @property string $model
14 * @property string $user_id
15 * @property string $content
16 * @property bool $display
17 * @property bool $is_inappropriate
18 * @property \Cake\I18n\DateTime|null $created
19 * @property \Cake\I18n\DateTime|null $modified
20 *
21 * @property \App\Model\Entity\User $user
22 * @property \App\Model\Entity\Article|null $article
23 */
24class Comment extends Entity
25{
26    /**
27     * Fields that can be mass assigned using newEntity() or patchEntity().
28     *
29     * Note that when '*' is set to true, this allows all unspecified fields to
30     * be mass assigned. For security purposes, it is advised to set '*' to false
31     * (or remove it), and explicitly make individual fields accessible as needed.
32     *
33     * @var array<string, bool>
34     */
35    protected array $_accessible = [
36        'foreign_key' => true,
37        'model' => true,
38        'user_id' => true,
39        'content' => true,
40        'display' => true,
41        'is_inappropriate' => false,
42        'created' => true,
43        'modified' => true,
44        'user' => true,
45    ];
46}