vendor/league/oauth2-server-bundle/src/ValueObject/Scope.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace League\Bundle\OAuth2ServerBundle\ValueObject;
  4. /**
  5.  * @psalm-immutable
  6.  */
  7. class Scope
  8. {
  9.     /**
  10.      * @var string
  11.      */
  12.     private $scope;
  13.     /**
  14.      * @psalm-mutation-free
  15.      */
  16.     public function __construct(string $scope)
  17.     {
  18.         $this->scope $scope;
  19.     }
  20.     /**
  21.      * @psalm-mutation-free
  22.      */
  23.     public function __toString(): string
  24.     {
  25.         return $this->scope;
  26.     }
  27. }