Files
deck/lib/Db/Group.php
Julius Knorr 86cb011a5c style: Fix php-cs issues
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2024-12-17 09:22:00 +01:00

26 lines
514 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Deck\Db;
use OCP\IGroup;
class Group extends RelationalObject {
public function __construct(IGroup $group) {
$primaryKey = $group->getGID();
parent::__construct($primaryKey, $group);
}
public function getObjectSerialization() {
return [
'uid' => $this->object->getGID(),
'displayname' => $this->object->getDisplayName(),
'type' => 1
];
}
}