1
0

Client.php 960 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\OAuth2\Db;
  7. use OCP\AppFramework\Db\Entity;
  8. /**
  9. * @method string getClientIdentifier()
  10. * @method void setClientIdentifier(string $identifier)
  11. * @method string getSecret()
  12. * @method void setSecret(string $secret)
  13. * @method string getRedirectUri()
  14. * @method void setRedirectUri(string $redirectUri)
  15. * @method string getName()
  16. * @method void setName(string $name)
  17. */
  18. class Client extends Entity {
  19. /** @var string */
  20. protected $name;
  21. /** @var string */
  22. protected $redirectUri;
  23. /** @var string */
  24. protected $clientIdentifier;
  25. /** @var string */
  26. protected $secret;
  27. public function __construct() {
  28. $this->addType('id', 'int');
  29. $this->addType('name', 'string');
  30. $this->addType('redirectUri', 'string');
  31. $this->addType('clientIdentifier', 'string');
  32. $this->addType('secret', 'string');
  33. }
  34. }