2016-11-27 03:13:42 +05:30
|
|
|
<?php
|
|
|
|
namespace api\components\OAuth2\Entities;
|
|
|
|
|
|
|
|
class ClientEntity extends \League\OAuth2\Server\Entity\ClientEntity {
|
|
|
|
|
2016-12-18 04:50:53 +05:30
|
|
|
private $isTrusted;
|
|
|
|
|
2016-11-27 03:13:42 +05:30
|
|
|
public function setId(string $id) {
|
|
|
|
$this->id = $id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setName(string $name) {
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setSecret(string $secret) {
|
|
|
|
$this->secret = $secret;
|
|
|
|
}
|
|
|
|
|
2016-11-27 03:26:13 +05:30
|
|
|
public function setRedirectUri($redirectUri) {
|
2016-11-27 03:13:42 +05:30
|
|
|
$this->redirectUri = $redirectUri;
|
|
|
|
}
|
|
|
|
|
2016-12-18 04:50:53 +05:30
|
|
|
public function setIsTrusted(bool $isTrusted) {
|
|
|
|
$this->isTrusted = $isTrusted;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isTrusted(): bool {
|
|
|
|
return $this->isTrusted;
|
|
|
|
}
|
|
|
|
|
2016-11-27 03:13:42 +05:30
|
|
|
}
|