vendor/shopware/core/Framework/Routing/Annotation/Since.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\Routing\Annotation;
  3. use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationAnnotation;
  4. use Shopware\Core\Framework\Log\Package;
  5. /**
  6. * @Annotation
  7. */
  8. #[Package('core')]
  9. class Since extends ConfigurationAnnotation
  10. {
  11. /**
  12. * @var string
  13. */
  14. private $value;
  15. /**
  16. * @return string
  17. */
  18. public function getAliasName()
  19. {
  20. return 'since';
  21. }
  22. /**
  23. * @return bool
  24. */
  25. public function allowArray()
  26. {
  27. return false;
  28. }
  29. public function getValue(): string
  30. {
  31. return $this->value;
  32. }
  33. public function setValue(string $entity): void
  34. {
  35. $this->value = $entity;
  36. }
  37. }