Skip to content

Commit

Permalink
fix: Add Field and FieldType back to server API
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Jul 10, 2024
1 parent 724843a commit adcf17e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/public/Files/Template/Field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Richdocuments\Template;

class Field {

Check failure on line 10 in lib/public/Files/Template/Field.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-ocp

InvalidDocblock

lib/public/Files/Template/Field.php:10:1: InvalidDocblock: PHPDoc is required for classes/interfaces in OCP. (see https://psalm.dev/008)
private FieldType $type;
private int $index;
private string $content;

public function __construct(FieldType $type) {

Check failure on line 15 in lib/public/Files/Template/Field.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-ocp

InvalidDocblock

lib/public/Files/Template/Field.php:15:2: InvalidDocblock: PHPDoc is required for methods in OCP. (see https://psalm.dev/008)
$this->type = $type;
}
}
12 changes: 12 additions & 0 deletions lib/public/Files/Template/FieldType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Richdocuments\Template;

enum FieldType {

Check failure on line 10 in lib/public/Files/Template/FieldType.php

View workflow job for this annotation

GitHub Actions / static-code-analysis-ocp

InvalidDocblock

lib/public/Files/Template/FieldType.php:10:1: InvalidDocblock: PHPDoc is required for classes/interfaces in OCP. (see https://psalm.dev/008)
case PlainText;
}

0 comments on commit adcf17e

Please sign in to comment.