fleetCatalogue/app/Models/Brand.php

95 lines
1.9 KiB
PHP
Raw Normal View History

<?php
namespace App\Models;
use Database\Factories\BrandFactory;
use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
/**
* App\Models\Brand
*
* @property int $id
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property string $name
2023-10-09 22:36:41 +00:00
* @property string|null $description
* @method static \Database\Factories\BrandFactory factory($count = null, $state = [])
* @method static Builder|Brand newModelQuery()
* @method static Builder|Brand newQuery()
* @method static Builder|Brand query()
* @method static Builder|Brand whereCreatedAt($value)
* @method static Builder|Brand whereDescription($value)
* @method static Builder|Brand whereId($value)
* @method static Builder|Brand whereName($value)
* @method static Builder|Brand whereUpdatedAt($value)
* @mixin Eloquent
*/
class Brand extends Model
{
use HasFactory;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return Brand
*/
public function setId(int $id): Brand
{
$this->id = $id;
return $this;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
*
* @return Brand
*/
public function setName(string $name): Brand
{
$this->name = $name;
return $this;
}
/**
2023-10-09 22:36:41 +00:00
* @return string|null
*/
2023-10-09 22:36:41 +00:00
public function getDescription(): ?string
{
return $this->description;
}
/**
2023-10-09 22:36:41 +00:00
* @param string|null $description
*
* @return Brand
*/
2023-10-09 22:36:41 +00:00
public function setDescription(?string $description): Brand
{
$this->description = $description;
return $this;
}
}