2017-05-04 17:46:59 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2017-05-04 17:46:59 -04:00
|
|
|
/**
|
2024-05-30 14:13:41 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-05-04 17:46:59 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\OAuth2\Db;
|
|
|
|
|
|
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
2024-09-19 09:46:20 -04:00
|
|
|
use OCP\DB\Types;
|
2017-05-04 17:46:59 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @method string getClientIdentifier()
|
|
|
|
|
* @method void setClientIdentifier(string $identifier)
|
|
|
|
|
* @method string getSecret()
|
|
|
|
|
* @method void setSecret(string $secret)
|
|
|
|
|
* @method string getRedirectUri()
|
|
|
|
|
* @method void setRedirectUri(string $redirectUri)
|
|
|
|
|
* @method string getName()
|
|
|
|
|
* @method void setName(string $name)
|
|
|
|
|
*/
|
|
|
|
|
class Client extends Entity {
|
|
|
|
|
/** @var string */
|
|
|
|
|
protected $name;
|
|
|
|
|
/** @var string */
|
|
|
|
|
protected $redirectUri;
|
|
|
|
|
/** @var string */
|
|
|
|
|
protected $clientIdentifier;
|
|
|
|
|
/** @var string */
|
|
|
|
|
protected $secret;
|
|
|
|
|
|
|
|
|
|
public function __construct() {
|
2024-09-19 09:46:20 -04:00
|
|
|
$this->addType('id', Types::INTEGER);
|
2017-05-04 17:46:59 -04:00
|
|
|
$this->addType('name', 'string');
|
2022-05-12 15:12:46 -04:00
|
|
|
$this->addType('redirectUri', 'string');
|
|
|
|
|
$this->addType('clientIdentifier', 'string');
|
2017-05-04 17:46:59 -04:00
|
|
|
$this->addType('secret', 'string');
|
|
|
|
|
}
|
|
|
|
|
}
|