src/Entity/PageContent.php line 25
<?phpnamespace App\Entity;use ApiPlatform\Metadata\Post;use Doctrine\DBAL\Types\Types;use ApiPlatform\Metadata\Patch;use Doctrine\ORM\Mapping as ORM;use ApiPlatform\Metadata\ApiFilter;use ApiPlatform\Metadata\ApiResource;use ApiPlatform\Metadata\GetCollection;use App\Repository\PageContentRepository;use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;#[ORM\Entity(repositoryClass: PageContentRepository::class)]#[ApiFilter(SearchFilter::class, properties: [self::URL_PARAM_NAME => 'exact'])]#[ApiResource(operations: [new GetCollection(),// new Post(),// new Patch(),])]class PageContent{public const URL_PARAM_NAME = 'url';#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 1024)]private ?string $url = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column(length: 255)]private ?string $title = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $body = null;#[ORM\Column(length: 1024, nullable: true)]private ?string $summary = null;#[ORM\Column(length: 255, nullable: true)]private ?string $miniSummary = null;#[ORM\Column(length: 1024)]private ?string $alias = null;#[ORM\Column]private array $fields = [];#[ORM\Column(length: 255, nullable: true)]private ?string $type = null;public function getId(): ?int{return $this->id;}public function getUrl(): ?string{return $this->url;}public function setUrl(string $url): self{$this->url = $url;return $this;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getTitle(): ?string{return $this->title;}public function setTitle(string $title): self{$this->title = $title;return $this;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): self{$this->body = $body;return $this;}public function getSummary(): ?string{return $this->summary;}public function setSummary(?string $summary): self{$this->summary = $summary;return $this;}public function getMiniSummary(): ?string{return $this->miniSummary;}public function setMiniSummary(?string $miniSummary): self{$this->miniSummary = $miniSummary;return $this;}public function getAlias(): ?string{return $this->alias;}public function setAlias(string $alias): self{$this->alias = $alias;return $this;}public function getFields(): array{return $this->fields;}public function setFields(array $fields): self{$this->fields = $fields;return $this;}public function getType(): ?string{return $this->type;}public function setType(?string $type): self{$this->type = $type;return $this;}}