19declare(strict_types=1);
48 $id = random_int(1, 100000);
89 ): array|float|bool|
int|string|null
93 'picture' => $this->picture
106 return $this->
withText($transformations->
string($normalized[
'text']))
107 ->withPicture($transformations->
denormalize($normalized[
'picture'], QuestionImage::class)?->getFilename() ??
'')
108 ->withIdentifier($transformations->
int($normalized[
'identifier']));
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Wrapper object for an image file within a question (e.g.
Class for matching question terms.
withIdentifier(int $identifier)
withPicture(string $picture)
__construct(string $text="", string $picture="", int $identifier=0)
fromNormalized(array $normalized, Transformations $transformations)
Restore the object from its normalized representation.
toNormalized(Transformations $transformations, array $context=[])
Convert the internal state of the implementing object into a language-neutral array structure.