- Add typing for most of the services, controllers and mappers - Add api doc for mappers - Use vendor-bin for psalm - Use attributes for controllers - Fix upload of attachments Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
35 lines
712 B
PHP
35 lines
712 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCA\Deck\Model;
|
|
|
|
use OCA\Deck\Db\Board;
|
|
|
|
class BoardSummary extends Board {
|
|
private Board $board;
|
|
|
|
/** @psalm-suppress ConstructorSignatureMismatch */
|
|
public function __construct(Board $board) {
|
|
parent::__construct();
|
|
$this->board = $board;
|
|
}
|
|
|
|
public function jsonSerialize(): array {
|
|
return [
|
|
'id' => $this->getId(),
|
|
'title' => $this->getTitle()
|
|
];
|
|
}
|
|
|
|
protected function getter(string $name): mixed {
|
|
return $this->board->getter($name);
|
|
}
|
|
|
|
public function __call($methodName, $args) {
|
|
return $this->board->__call($methodName, $args);
|
|
}
|
|
}
|