src/Flexy/Apps/TransportBundle/Entity/MissionExtraFees.php line 12
<?php
namespace App\Flexy\Apps\TransportBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\Flexy\TransportBundle\Entity\MissionExtraFeesRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MissionExtraFeesRepository::class)]
#[ApiResource]
class MissionExtraFees
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?int $quantity = 1;
#[ORM\Column(nullable: true)]
private ?float $price = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $description = null;
#[ORM\ManyToOne(inversedBy: 'missionExtraFees')]
private ?MissionExtraFeesType $missionExtraFeesType = null;
#[ORM\ManyToOne(inversedBy: 'missionExtraFees')]
private ?Mission $mission = null;
public function getId(): ?int
{
return $this->id;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(?float $price): self
{
$this->price = $price;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getMissionExtraFeesType(): ?MissionExtraFeesType
{
return $this->missionExtraFeesType;
}
public function setMissionExtraFeesType(?MissionExtraFeesType $missionExtraFeesType): self
{
$this->missionExtraFeesType = $missionExtraFeesType;
return $this;
}
public function getMission(): ?Mission
{
return $this->mission;
}
public function setMission(?Mission $mission): self
{
$this->mission = $mission;
return $this;
}
}