src/Entity/LandingpageElement.php line 14
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\LandingpageElementRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\UX\Turbo\Attribute\Broadcast;#[ORM\Entity(repositoryClass: LandingpageElementRepository::class)]#[ApiResource]#[Broadcast]class LandingpageElement{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::TEXT)]private ?string $content = null;#[ORM\ManyToOne(inversedBy: 'landingpageElements')]private ?MediaObject $image = null;#[ORM\Column(length: 255)]private ?string $type = null;#[ORM\Column]private ?bool $configurator = null;#[ORM\ManyToOne(inversedBy: 'landingpageElements')]private ?Landingpage $landingpage = null;public function getId(): ?int{return $this->id;}public function getContent(): ?string{return $this->content;}public function setContent(string $content): self{$this->content = $content;return $this;}public function getImage(): ?MediaObject{return $this->image;}public function setImage(?MediaObject $image): self{$this->image = $image;return $this;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function isConfigurator(): ?bool{return $this->configurator;}public function setConfigurator(bool $configurator): self{$this->configurator = $configurator;return $this;}public function getLandingpage(): ?Landingpage{return $this->landingpage;}public function setLandingpage(?Landingpage $landingpage): self{$this->landingpage = $landingpage;return $this;}}