ScopeEntity is JsonSerializable

This commit is contained in:
Alex Bilbie committed 2016-01-12 22:59:33 +00:00
1 parent 9958e1bf80
commit 5f9feda80c
2 files changed
+9 -1

No files matched your search

@@ -1,7 +1,7 @@
<?php
namespace League\OAuth2\Server\Entities\Interfaces;
interface ScopeEntityInterface
interface ScopeEntityInterface extends \JsonSerializable
{
/**
* Get the scope's identifier
+8
View File
@@ -11,4 +11,12 @@ use League\OAuth2\Server\Entities\Traits\EntityTrait;
class ScopeEntity implements ScopeEntityInterface
{
use EntityTrait;
/**
* @inheritdoc
*/
function jsonSerialize()
{
return $this->getIdentifier();
}
}