ok

Mini Shell

Direktori : /home2/selectio/public_html/3-idiots/vendor/laravel/passport/src/Bridge/
Upload File :
Current File : /home2/selectio/public_html/3-idiots/vendor/laravel/passport/src/Bridge/Scope.php

<?php

namespace Laravel\Passport\Bridge;

use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Entities\Traits\EntityTrait;

class Scope implements ScopeEntityInterface
{
    use EntityTrait;

    /**
     * Create a new scope instance.
     *
     * @param  string  $name
     * @return void
     */
    public function __construct($name)
    {
        $this->setIdentifier($name);
    }

    /**
     * Get the data that should be serialized to JSON.
     *
     * @return mixed
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
        return $this->getIdentifier();
    }
}

Zerion Mini Shell 1.0