12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace App\Entity;
- use ApiPlatform\Core\Annotation\ApiProperty;
- use ApiPlatform\Core\Annotation\ApiResource;
- use App\Serializer\ItemSerializedName;
- use Symfony\Component\Serializer\Annotation\Groups;
- /**
- * @ApiResource(
- * itemOperations={"get"},
- * collectionOperations={"get"}
- * )
- */
- class WebflowCollectionCategory extends AbstractWebflowCollectionItem {
- /**
- * @ApiProperty(identifier=true)
- * @Groups({
- * "event:collection:read",
- * "event:collection:write",
- * })
- * @ItemSerializedName("_id")
- */
- protected $id;
- /*
- * @Groups({
- * "event:collection:read",
- * "event:collection:write",
- * })
- */
- protected static $cid = '5ed0f77a42f75848a95ebf03';
- /*
- * @Groups({
- * "event:collection:read",
- * "event:collection:write",
- * })
- */
- private $name;
- /*
- * @Groups({
- * "event:collection:read",
- * "event:collection:write",
- * })
- */
- private $slug;
- public static function cid(): string {
- return self::$cid;
- }
- public function getName(): ?string {
- return $this->name;
- }
- public function setName(string $name): self {
- $this->name = $name;
- return $this;
- }
- public function getSlug(): ?string {
- return $this->slug;
- }
- protected function setSlug(string $slug): self {
- $this->slug = $slug;
- return $this;
- }
- }
|