1 | <?php namespace Cviebrock\EloquentTaggable\Models; |
||
11 | class Tag extends Model |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @inheritdoc |
||
16 | */ |
||
17 | protected $table = 'taggable_tags'; |
||
18 | |||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | protected $primaryKey = 'tag_id'; |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | protected $fillable = [ |
||
28 | 'name', |
||
29 | 'normalized', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public function __construct(array $attributes = []) |
||
43 | |||
44 | 23 | /** |
|
45 | * Get the inverse of the polymorphic relation, via an attribute |
||
46 | 23 | * defining the type of models to return. |
|
47 | 23 | * |
|
48 | 23 | * @param string $class |
|
49 | 23 | * |
|
50 | * @return \Illuminate\Database\Eloquent\Relations\MorphToMany |
||
51 | */ |
||
52 | public function taggedModels($class) |
||
56 | |||
57 | /** |
||
58 | * Set the name attribute on the model. |
||
59 | * |
||
60 | * @param string $value |
||
61 | */ |
||
62 | public function setNameAttribute($value) |
||
68 | |||
69 | /** |
||
70 | * Find the tag with the given name. |
||
71 | * |
||
72 | * @param string $value |
||
73 | * |
||
74 | * @return static|null |
||
75 | */ |
||
76 | public static function findByName($value) |
||
80 | |||
81 | /** |
||
82 | * Scope to find tags by name. |
||
83 | * |
||
84 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
85 | * @param $value |
||
86 | * |
||
87 | * @return \Illuminate\Database\Eloquent\Builder |
||
88 | */ |
||
89 | public function scopeByName(Builder $query, $value) |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function getRelationValue($key) |
||
117 | |||
118 | /** |
||
119 | * @inheritdoc |
||
120 | */ |
||
121 | public function __toString() |
||
125 | |||
126 | } |
||
127 |
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.