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