1 | <?php |
||
32 | class Note extends ModelAbstract |
||
33 | { |
||
34 | use NoteRelations; |
||
35 | |||
36 | /** |
||
37 | * Timestamp enabled. |
||
38 | * |
||
39 | * @var bool |
||
40 | */ |
||
41 | public $timestamps = true; |
||
42 | |||
43 | /** |
||
44 | * Name of database table. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $table = 'projects_notes'; |
||
49 | |||
50 | /** |
||
51 | * List of allowed columns to be used in $this->fill(). |
||
52 | * |
||
53 | * @var array |
||
54 | */ |
||
55 | protected $fillable = ['project_id', 'created_by', 'body']; |
||
56 | |||
57 | /** |
||
58 | * @param Model\User|null $user |
||
59 | * |
||
60 | * @return \Tinyissue\Repository\Project\Note\Updater |
||
61 | */ |
||
62 | public function updater(Model\User $user = null) |
||
66 | |||
67 | /** |
||
68 | * Generate a URL for the project note. |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | public function to() |
||
76 | } |
||
77 |