src/Entity/Content.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContentRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassContentRepository::class)]
  7. #[ORM\Table(name'site_content')]
  8. class Content
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $title null;
  16.     #[ORM\Column(typeTypes::TEXT)]
  17.     private ?string $text null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $url null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getTitle(): ?string
  25.     {
  26.         return $this->title;
  27.     }
  28.     public function setTitle(string $title): self
  29.     {
  30.         $this->title $title;
  31.         return $this;
  32.     }
  33.     public function getText(): ?string
  34.     {
  35.         return $this->text;
  36.     }
  37.     public function setText(string $text): self
  38.     {
  39.         $this->text $text;
  40.         return $this;
  41.     }
  42.     public function getUrl(): ?string
  43.     {
  44.         return $this->url;
  45.     }
  46.     public function setUrl(string $url): self
  47.     {
  48.         $this->url $url;
  49.         return $this;
  50.     }
  51. }