ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Handler.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 use ILIAS\Poll\Image\I\Repository\Key\HandlerInterface as ilPollImageRepositoryKeyInterface;
25 
26 class Handler implements ilPollImageRepositoryKeyInterface
27 {
28  protected ObjectId $object_id;
29 
30  public function withObjectId(
31  ObjectId $object_id
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