2015-04-05 18:33:25 +05:30
|
|
|
<?php
|
2016-02-20 04:39:39 +05:30
|
|
|
|
2015-04-05 18:33:25 +05:30
|
|
|
namespace League\OAuth2\Server\Entities\Interfaces;
|
|
|
|
|
|
|
|
interface ClientEntityInterface
|
|
|
|
{
|
|
|
|
/**
|
2016-02-20 04:39:39 +05:30
|
|
|
* Get the client's identifier.
|
|
|
|
*
|
2015-04-05 18:33:25 +05:30
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getIdentifier();
|
|
|
|
|
|
|
|
/**
|
2016-02-20 04:39:39 +05:30
|
|
|
* Set the client's identifier.
|
2016-02-18 16:18:12 +05:30
|
|
|
*
|
2015-04-05 18:33:25 +05:30
|
|
|
* @param $identifier
|
|
|
|
*/
|
|
|
|
public function setIdentifier($identifier);
|
|
|
|
|
|
|
|
/**
|
2016-02-20 04:39:39 +05:30
|
|
|
* Get the client's name.
|
|
|
|
*
|
2015-04-05 18:33:25 +05:30
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName();
|
|
|
|
|
|
|
|
/**
|
2016-02-20 04:39:39 +05:30
|
|
|
* Set the client's name.
|
2016-02-18 16:18:12 +05:30
|
|
|
*
|
2015-04-05 18:33:25 +05:30
|
|
|
* @param string $name
|
|
|
|
*/
|
|
|
|
public function setName($name);
|
2016-02-18 16:18:12 +05:30
|
|
|
|
|
|
|
/**
|
2016-02-20 04:39:39 +05:30
|
|
|
* Set the client's redirect uri.
|
2016-02-18 16:18:12 +05:30
|
|
|
*
|
|
|
|
* @param string $redirectUri
|
|
|
|
*/
|
|
|
|
public function setRedirectUri($redirectUri);
|
|
|
|
|
|
|
|
/**
|
2016-02-20 04:39:39 +05:30
|
|
|
* Returns the registered redirect URI.
|
2016-02-18 16:18:12 +05:30
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getRedirectUri();
|
2015-04-05 18:33:25 +05:30
|
|
|
}
|