Files
nextcloud-forum/gen/model/{{pascalCase name}}.php
2025-11-06 02:03:11 +02:00

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(),
];
}
}