<?phpnamespace App\Entity;use App\Repository\OfferBodyRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=OfferBodyRepository::class) * @ORM\HasLifecycleCallbacks() */class OfferBody{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="offerBodies") * @ORM\JoinColumn(nullable=false) */ private Offer $offer; /** * @ORM\Column(type="text") */ private $description; /** * @ORM\Column(type="text") */ private $tehnicalDescription; /** * @ORM\Column(type="integer", nullable=true) */ private $hour; /** * @ORM\Column(type="decimal", precision=11, scale=2, nullable=true) */ private $value; /** * @ORM\Column(type="boolean",options={"default":false}) */ private $accepted = false; /** * @ORM\Column(type="integer") */ private $orderOfferBody; public function getId(): ?int { return $this->id; } public function getOffer(): Offer { return $this->offer; } public function setOffer(Offer $offer): OfferBody { $this->offer = $offer; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getTehnicalDescription(): ?string { return $this->tehnicalDescription; } public function setTehnicalDescription(string $tehnicalDescription): self { $this->tehnicalDescription = $tehnicalDescription; return $this; } public function getHour(): ?int { return $this->hour; } public function setHour(?int $hour): self { $this->hour = $hour; return $this; } public function getValue(): ?string { return $this->value; } public function setValue(?string $value): self { $this->value = $value; return $this; } public function isAccepted(): ?bool { return $this->accepted; } public function setAccepted(bool $accepted): self { $this->accepted = $accepted; return $this; } public function getOrderOfferBody() { return $this->orderOfferBody; } public function setOrderOfferBody($orderOfferBody) { $this->orderOfferBody = $orderOfferBody; return $this; }}