IDE Helper added
This commit is contained in:
parent
7fd04ce100
commit
3f1bca4168
15 changed files with 21231 additions and 22 deletions
|
@ -5,7 +5,28 @@ declare(strict_types=1);
|
|||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
|
||||
/**
|
||||
* App\Models\Tag
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $tag
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Bookmark[] $bookmarks
|
||||
* @property-read int|null $bookmarks_count
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Note[] $notes
|
||||
* @property-read int|null $notes_count
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereTag($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Tag whereUpdatedAt($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Tag extends Model
|
||||
{
|
||||
/**
|
||||
|
@ -18,7 +39,7 @@ class Tag extends Model
|
|||
/**
|
||||
* Define the relationship with notes.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
* @return BelongsToMany
|
||||
*/
|
||||
public function notes()
|
||||
{
|
||||
|
@ -28,7 +49,7 @@ class Tag extends Model
|
|||
/**
|
||||
* The bookmarks that belong to the tag.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
* @return BelongsToMany
|
||||
*/
|
||||
public function bookmarks()
|
||||
{
|
||||
|
@ -38,7 +59,7 @@ class Tag extends Model
|
|||
/**
|
||||
* When creating a Tag model instance, invoke the nomralize method on the tag.
|
||||
*
|
||||
* @param string $value
|
||||
* @param string $value
|
||||
*/
|
||||
public function setTagAttribute(string $value)
|
||||
{
|
||||
|
@ -49,7 +70,7 @@ class Tag extends Model
|
|||
* This method actually normalizes a tag. That means lowercase-ing and
|
||||
* removing fancy diatric characters.
|
||||
*
|
||||
* @param string $tag
|
||||
* @param string $tag
|
||||
* @return string
|
||||
*/
|
||||
public static function normalize(string $tag): string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue