1 | <?php |
||
7 | class Module extends Model |
||
8 | { |
||
9 | /** |
||
10 | * The attributes that are mass assignable. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $fillable = [ |
||
15 | 'name', |
||
16 | 'path', |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @param string $name |
||
21 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|void|null |
||
22 | */ |
||
23 | public static function findByName(string $name) |
||
27 | |||
28 | /** |
||
29 | * @param string $name |
||
30 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|void|null |
||
31 | */ |
||
32 | public static function findByNameOrFail(string $name) |
||
36 | |||
37 | /** |
||
38 | * @param string $name |
||
39 | * @param string $path |
||
40 | * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model |
||
41 | */ |
||
42 | public static function findByNameOrCreate(string $name, string $path) |
||
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public static function deleteAll() |
||
55 | |||
56 | /** |
||
57 | * @param $column |
||
58 | * @param $direction |
||
59 | * @return \Illuminate\Database\Eloquent\Builder |
||
60 | */ |
||
61 | public static function orderBy($column, $direction) |
||
66 | |||
67 | /** |
||
68 | * Determine whether the given status same with a module status. |
||
69 | * |
||
70 | * @param $status |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function hasStatus(bool $status) |
||
77 | |||
78 | /** |
||
79 | * Set active state for a module. |
||
80 | * |
||
81 | * @param bool $active |
||
82 | */ |
||
83 | public function setActive(bool $active) |
||
88 | } |
||
89 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.