src/Entity/PmMethods.php line 24
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\PmMethodsRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;use ApiPlatform\Metadata\ApiFilter;use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;#[ORM\Entity(repositoryClass: PmMethodsRepository::class)]#[ApiResource(normalizationContext: ['groups' => ['pm:read']],denormalizationContext: ['groups' => ['pm:write']],order: ['id' => 'DESC'])]#[ApiFilter(SearchFilter::class, properties: ['slug' => 'exact','name' => 'partial'])]class PmMethods{#[Groups(['pm:read', 'pm:write'])]#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[Groups(['pm:read', 'pm:write'])]#[ORM\Column(length: 255, nullable: true)]private ?string $name = null;#[Groups(['pm:read', 'pm:write'])]#[ORM\Column(length: 50, nullable: true)]private ?string $slug = null;#[Groups(['pm:read', 'pm:write'])]#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $content = null;#[Groups(['pm:read', 'pm:write'])]#[ORM\Column(nullable: true)]private ?array $object = null;#[Groups(['pm:read', 'pm:write'])]#[ORM\Column(length: 255, nullable: true)]private ?string $publicKey = null;#[Groups(['pm:read', 'pm:write'])]#[ORM\Column(length: 255, nullable: true)]private ?string $privateKey = null;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(?string $name): static{$this->name = $name;return $this;}public function getSlug(): ?string{return $this->slug;}public function setSlug(?string $slug): static{$this->slug = $slug;return $this;}public function getContent(): ?string{return $this->content;}public function setContent(?string $content): static{$this->content = $content;return $this;}public function getObject(): ?array{return $this->object;}public function setObject(?array $object): static{$this->object = $object;return $this;}public function getPublicKey(): ?string{return $this->publicKey;}public function setPublicKey(?string $publicKey): static{$this->publicKey = $publicKey;return $this;}public function getPrivateKey(): ?string{return $this->privateKey;}public function setPrivateKey(?string $privateKey): static{$this->privateKey = $privateKey;return $this;}}