You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 satır
655B

  1. <?php
  2. namespace domain\Order\OrderStatus;
  3. class OrderStatus
  4. {
  5. const ALIAS_ORDERED = 'ordered';
  6. const ALIAS_UPDATED = 'updated';
  7. const ALIAS_CANCELED = 'canceled';
  8. const ALIAS_DELETED = 'deleted';
  9. public string $alias;
  10. public string $name;
  11. public function getAlias(): string
  12. {
  13. return $this->alias;
  14. }
  15. public function setAlias(string $alias): self
  16. {
  17. $this->alias = $alias;
  18. return $this;
  19. }
  20. public function getName(): string
  21. {
  22. return $this->name;
  23. }
  24. public function setName(string $name): self
  25. {
  26. $this->name = $name;
  27. return $this;
  28. }
  29. }