AbstractWebflowCollectionItem.php 820 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Entity;
  3. use App\Serializer\ItemSerializedName;
  4. abstract class AbstractWebflowCollectionItem extends AbstractWebflowEntity {
  5. /**
  6. * @ItemSerializedName("_archived")
  7. */
  8. private $archived = false;
  9. /**
  10. * @ItemSerializedName("_draft")
  11. */
  12. private $draft = true;
  13. protected function setArchived(bool $a): self {
  14. $this->archived = $a;
  15. return $this;
  16. }
  17. public function getArchived(): ?bool {
  18. return $this->archived;
  19. }
  20. protected function setDraft(bool $a): self {
  21. $this->draft = $a;
  22. return $this;
  23. }
  24. public function getDraft(): ?bool {
  25. return $this->draft;
  26. }
  27. public function getCid(): string {
  28. return static::$cid;
  29. }
  30. abstract public static function cid(): string;
  31. }