<?phpnamespace App\Entity\Gos\Uniqskills;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\Gos\Uniqskills\VoucherElementRepository") * @ORM\HasLifecycleCallbacks() */class VoucherElement{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="integer") */ private $x; /** * @ORM\Column(type="integer") */ private $y; /** * @ORM\Column(type="integer") */ private $width; /** * @ORM\Column(type="integer") */ private $height; /** * @ORM\Column(type="integer") */ private $fontSize; /** * @ORM\Column(type="boolean", nullable=true) */ private $isImage; /** * @ORM\Column(type="boolean", nullable=true) */ private $textCentered; /** * @ORM\Column(type="boolean", nullable=true) */ private $textJustified; /** * @ORM\Column(type="string", length=255) */ private $value; /** * @ORM\ManyToOne(targetEntity="App\Entity\Gos\Uniqskills\Voucher", inversedBy="voucherElements") * @ORM\JoinColumn(referencedColumnName="id", onDelete="cascade") */ private $voucher; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } public function __toString() { return (string) $this->name; } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getX(): ?int { return $this->x; } public function setX(int $x): self { $this->x = $x; return $this; } public function getY(): ?int { return $this->y; } public function setY(int $y): self { $this->y = $y; return $this; } public function getWidth(): ?int { return $this->width; } public function setWidth(int $width): self { $this->width = $width; return $this; } public function getHeight(): ?int { return $this->height; } public function setHeight(int $height): self { $this->height = $height; return $this; } public function getFontSize(): ?int { return $this->fontSize; } public function setFontSize(int $fontSize): self { $this->fontSize = $fontSize; return $this; } public function getIsImage(): ?bool { return $this->isImage; } public function setIsImage(?bool $isImage): self { $this->isImage = $isImage; return $this; } public function getTextCentered(): ?bool { return $this->textCentered; } public function setTextCentered(?bool $textCentered): self { $this->textCentered = $textCentered; return $this; } public function getTextJustified(): ?bool { return $this->textJustified; } public function setTextJustified(?bool $textJustified): self { $this->textJustified = $textJustified; return $this; } public function getValue(): ?string { return $this->value; } public function setValue(string $value): self { $this->value = $value; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getVoucher(): ?Voucher { return $this->voucher; } public function setVoucher(?Voucher $voucher): self { $this->voucher = $voucher; return $this; }}