ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
AbstractBaseItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
30 abstract class AbstractBaseItem implements isItem
31 {
34 
35  private int $position = 0;
36 
37  public function __construct(private IdentificationInterface $provider_identification)
38  {
39  }
40 
41  public function getPosition(): int
42  {
43  return $this->position;
44  }
45 
46  public function withPosition(int $position): isItem
47  {
48  $clone = clone $this;
49  $clone->position = $position;
50  return $clone;
51  }
52 
54  {
55  return $this->provider_identification;
56  }
57 
58 }
__construct(private IdentificationInterface $provider_identification)
getPosition()
Return the default position for installation, this will be overridden by the configuration later...