for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Andrew Millington <[email protected]>
* @copyright Copyright (c) Andrew Millington
* @license http://mit-license.org
*
* @link https://github.com/thephpleague/oauth2-server
*/
namespace League\OAuth2\Server\Entities\Traits;
trait ScopeTrait
{
* Serialize the object to the scopes string identifier when using json_encode().
* @return string
public function jsonSerialize()
return $this->getIdentifier();
}
abstract public function getIdentifier();