ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
NumberId.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
26 class NumberId implements DocumentId
27 {
28  private readonly int $number;
29 
30  public function __construct(Document $document)
31  {
32  $this->number = $document->id();
33  }
34 
35  public function number(): int
36  {
37  return $this->number;
38  }
39 }