19declare(strict_types=1);
31 private string $description,
32 private string $author,
33 private \DateTimeImmutable $created_at,
34 private int $settings_id = -1
69 return $this->description;
79 return $this->created_at;
84 return $this->settings_id;
90 'id' => $this->
getId(),
95 'created_at' => $this->
getCreatedAt()->format(\DateTimeInterface::ATOM),
103 (
int)
$data[
'user_id'],
104 (string)
$data[
'name'],
105 (
string)
$data[
'description'],
106 (string)
$data[
'author'],
107 new \DateTimeImmutable(
$data[
'created_at'])
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(private int $id, private int $user_id, private string $name, private string $description, private string $author, private \DateTimeImmutable $created_at, private int $settings_id=-1)
static fromExport(array $data)
Creates an instance of the object from an array.
toExport()
Transform the object into a simple, associative array.
This interface allows an object to define its own transformation into a language-neutral,...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...