1
0

Client.php 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. use OCP\DB\Types;
  9. /**
  10. * @method string getClientIdentifier()
  11. * @method void setClientIdentifier(string $identifier)
  12. * @method string getSecret()
  13. * @method void setSecret(string $secret)
  14. * @method string getRedirectUri()
  15. * @method void setRedirectUri(string $redirectUri)
  16. * @method string getName()
  17. * @method void setName(string $name)
  18. */
  19. class Client extends Entity {
  20. /** @var string */
  21. protected $name;
  22. /** @var string */
  23. protected $redirectUri;
  24. /** @var string */
  25. protected $clientIdentifier;
  26. /** @var string */
  27. protected $secret;
  28. public function __construct() {
  29. $this->addType('id', Types::INTEGER);
  30. $this->addType('name', 'string');
  31. $this->addType('redirectUri', 'string');
  32. $this->addType('clientIdentifier', 'string');
  33. $this->addType('secret', 'string');
  34. }
  35. }