Added ClientTrait

This commit is contained in:
Alex Bilbie
2016-04-09 15:27:44 +01:00
parent c6faa228fe
commit b59106dc64
2 changed files with 34 additions and 75 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace League\OAuth2\Server\Entities\Traits;
trait ClientTrait
{
protected $name;
protected $redirectUri;
/**
* Get the client's name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Returns the registered redirect URI (as a string).
*
* Alternatively return an indexed array of redirect URIs.
*
* @return string|string[]
*/
public function getRedirectUri()
{
return $this->redirectUri;
}
}