Source of file ScopeEntity.php
Size: 0,629 Bytes - Last Modified: 2022-02-21T10:00:46+00:00
/var/www/docs.ssmods.com/process/src/src/Entities/ScopeEntity.php
1234567891011121314151617181920212223242526272829303132 | <?php namespace AdvancedLearning\Oauth2Server\Entities; use League\OAuth2\Server\Entities\ScopeEntityInterface; use League\OAuth2\Server\Entities\Traits\EntityTrait; class ScopeEntity implements ScopeEntityInterface { use EntityTrait; /** * ScopeEntity constructor. * * @param string $name The name of the scope. */ public function __construct(string $name) { $this->setIdentifier($name); } /** * Get the scope in a format suitable for json. * * @return mixed */ public function jsonSerialize() { return $this->getIdentifier(); } } |