ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Handler.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\Poll\Image\I\Repository\Key\HandlerInterface as ilPollImageRepositoryKeyInterface;
25
26class Handler implements ilPollImageRepositoryKeyInterface
27{
29
30 public function withObjectId(
32 ): ilPollImageRepositoryKeyInterface {
33 $clone = clone $this;
34 $clone->object_id = $object_id;
35 return $clone;
36 }
37
38 public function getObjectId(): ObjectId
39 {
40 return $this->object_id;
41 }
42
43 public function isValid(): bool
44 {
45 return isset($this->object_id);
46 }
47}
withObjectId(ObjectId $object_id)
Definition: Handler.php:30