<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
final class ExpressPricing
{
#[ORM\Column(name: 'express_provided', type: 'boolean', nullable: true)]
protected ?bool $provided;
#[ORM\Column(name: 'express_price', type: 'integer', nullable: true)]
protected ?int $price;
public function __construct(?bool $provied, ?int $price)
{
$this->provided = $provied;
$this->price = $price;
}
public function isProvided(): ?bool
{
return $this->provided;
}
public function getPrice(): ?int
{
return $this->price;
}
}