oms-OnlineResourceWatcher/app/web/Models/Group.php
2022-09-26 23:17:08 +02:00

28 lines
538 B
PHP
Executable File

<?php
declare(strict_types=1);
namespace Models;
class Group extends \phpOMS\Account\Group
{
public \DateTimeImmutable $createdAt;
public Account $createdBy;
public string $descriptionRaw = '';
protected array $accounts = [];
public function __construct(string $name = '')
{
$this->createdBy = new NullAccount();
$this->createdAt = new \DateTimeImmutable('now');
$this->name = $name;
}
public function getAccounts() : array
{
return $this->accounts;
}
}