vendor/ibexa/core/src/lib/MVC/Symfony/SiteAccessGroup.php line 13

Open in your IDE?
  1. <?php
  2. /**
  3. * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4. * @license For full copyright and license information view LICENSE file distributed with this source code.
  5. */
  6. declare(strict_types=1);
  7. namespace Ibexa\Core\MVC\Symfony;
  8. use JsonSerializable;
  9. final class SiteAccessGroup implements JsonSerializable
  10. {
  11. /** @var string */
  12. private $name;
  13. public function __construct(string $name)
  14. {
  15. $this->name = $name;
  16. }
  17. public function getName(): string
  18. {
  19. return $this->name;
  20. }
  21. public function __toString()
  22. {
  23. return $this->name;
  24. }
  25. /**
  26. * @return array{'name': string}
  27. */
  28. public function jsonSerialize(): array
  29. {
  30. return [
  31. 'name' => $this->name,
  32. ];
  33. }
  34. }
  35. class_alias(SiteAccessGroup::class, 'eZ\Publish\Core\MVC\Symfony\SiteAccessGroup');