1 | <?php |
||
15 | class UserStory extends Model |
||
16 | { |
||
17 | use SoftDeletes; |
||
18 | use GlobalScope; |
||
19 | /** |
||
20 | * The database table used by the model. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $table = 'user_stories'; |
||
25 | |||
26 | /** |
||
27 | * Attributes that should be mass-assignable. |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $fillable = ['user_id', 'product_backlog_id', 'title', 'description', 'config_priority_id', 'acceptance_criteria']; |
||
32 | |||
33 | /** |
||
34 | * The attributes excluded from the model's JSON form. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $hidden = []; |
||
39 | |||
40 | /** |
||
41 | * The attributes that should be casted to native types. |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $casts = []; |
||
46 | |||
47 | protected static function boot() |
||
51 | |||
52 | public function productBacklog() |
||
56 | |||
57 | public function issues() |
||
62 | |||
63 | public function priority() |
||
67 | |||
68 | public function favorite() |
||
72 | |||
73 | public function comments() |
||
78 | |||
79 | public function notes() |
||
84 | |||
85 | public function labels() |
||
89 | |||
90 | public function activities() |
||
103 | |||
104 | public function issuesHasUsers($total = 3) |
||
114 | |||
115 | public function issueStatus() |
||
123 | } |
||
124 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.