%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps/app_api/lib/Db/SpeechToText/ |
Current File : //www/varak.net/nextcloud.varak.net/apps/app_api/lib/Db/SpeechToText/SpeechToTextProvider.php |
<?php declare(strict_types=1); namespace OCA\AppAPI\Db\SpeechToText; use OCP\AppFramework\Db\Entity; /** * Class SpeechToTextProvider * * @package OCA\AppAPI\Db\SpeechToText * * @method string getAppid() * @method string getName() * @method string getDisplayName() * @method string getActionHandler() * @method void setAppid(string $appid) * @method void setName(string $name) * @method void setDisplayName(string $displayName) * @method void setActionHandler(string $actionHandler) */ class SpeechToTextProvider extends Entity implements \JsonSerializable { protected $appid; protected $name; protected $displayName; protected $actionHandler; public function __construct(array $params = []) { $this->addType('appid', 'string'); $this->addType('name', 'string'); $this->addType('displayName', 'string'); $this->addType('actionHandler', 'string'); if (isset($params['id'])) { $this->setId($params['id']); } if (isset($params['appid'])) { $this->setAppid($params['appid']); } if (isset($params['name'])) { $this->setName($params['name']); } if (isset($params['display_name'])) { $this->setDisplayName($params['display_name']); } if (isset($params['action_handler'])) { $this->setActionHandler($params['action_handler']); } } public function jsonSerialize(): array { return [ 'id' => $this->getId(), 'appid' => $this->getAppid(), 'name' => $this->getName(), 'display_name' => $this->getDisplayName(), 'action_handler' => $this->getActionHandler(), ]; } }