ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 }