| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace oauth2\entity;
- use League\OAuth2\Server\Entities\ClientEntityInterface;
- use League\OAuth2\Server\Entities\Traits\ClientTrait;
- use League\OAuth2\Server\Entities\Traits\EntityTrait;
- /**
- * Class ClientEntity
- * @package oauth2\entity
- * @author jianyan74 <751393839@qq.com>
- */
- class ClientEntity implements ClientEntityInterface
- {
- use EntityTrait, ClientTrait;
- /**
- * @var string
- */
- protected $grantType;
- /**
- * Get the client's name.
- *
- * @return string
- * @codeCoverageIgnore
- */
- public function getGrantType()
- {
- return $this->grantType;
- }
- /**
- * @param $grantType
- */
- public function setGrantType($grantType)
- {
- $this->grantType = $grantType;
- }
- /**
- * @param $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @param $redirectUri
- */
- public function setRedirectUri($redirectUri)
- {
- $this->redirectUri = $redirectUri;
- }
- /**
- * Returns true if the client is confidential.
- *
- * @return bool
- */
- public function isConfidential()
- {
- return true;
- }
- }
|