File: D:/HostingSpaces/SBogers10/conmeq.komma.pro/app/Komma/Shop/ShipmentGroups/ShipmentGroup.php
<?php
namespace App\Komma\Shop\ShipmentGroups;
use App\Komma\Kms\Core\Attributes\Models\Traits\HasThumbnailInterface;
use App\Komma\Kms\Core\Attributes\Models\Traits\HasThumbnailTrait;
use App\Komma\Kms\Core\Entities\DisplayNameTrait;
use App\Komma\Shop\Shipments\Shipment;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* Class ShipmentGroup
*
* @package App\Komma\Shop\Shipment
* @property int $id
* @property string $status
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Komma\Shop\Shipments\Shipment[] $shipments
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Shop\ShipmentGroups\ShipmentGroup whereUpdatedAt($value)
* @mixin \Eloquent
*/
class ShipmentGroup extends Model implements HasThumbnailInterface
{
use HasThumbnailTrait;
use DisplayNameTrait;
protected $name;
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->name = __('shop/shipmentgroups.shipmentGroup');
}
public function shipments(): HasMany
{
return $this->hasMany(Shipment::class);
}
}