2016-11-27 00:43:42 +03:00
|
|
|
<?php
|
|
|
|
namespace api\components\OAuth2\Entities;
|
|
|
|
|
|
|
|
class ClientEntity extends \League\OAuth2\Server\Entity\ClientEntity {
|
|
|
|
|
2016-12-18 02:20:53 +03:00
|
|
|
private $isTrusted;
|
|
|
|
|
2016-11-27 00:43:42 +03:00
|
|
|
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 00:56:13 +03:00
|
|
|
public function setRedirectUri($redirectUri) {
|
2016-11-27 00:43:42 +03:00
|
|
|
$this->redirectUri = $redirectUri;
|
|
|
|
}
|
|
|
|
|
2016-12-18 02:20:53 +03:00
|
|
|
public function setIsTrusted(bool $isTrusted) {
|
|
|
|
$this->isTrusted = $isTrusted;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isTrusted(): bool {
|
|
|
|
return $this->isTrusted;
|
|
|
|
}
|
|
|
|
|
2016-11-27 00:43:42 +03:00
|
|
|
}
|