mirror of
https://github.com/chenasraf/nextcloud-forum.git
synced 2026-05-18 01:28:58 +00:00
31 lines
583 B
PHP
Executable File
31 lines
583 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
// SPDX-FileCopyrightText: Chen Asraf <contact@casraf.dev>
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace OCA\Forum\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method string getFieldName()
|
|
* @method void setFieldName($value)
|
|
*/
|
|
class {{pascalCase name}} extends Entity implements JsonSerializable {
|
|
// protected $fieldName;
|
|
|
|
public function __construct() {
|
|
// $this->addType('fieldName', 'type');
|
|
}
|
|
|
|
public function jsonSerialize(): array {
|
|
return [
|
|
// 'field_name' => $this->getFieldName(),
|
|
];
|
|
}
|
|
}
|