| Total Complexity | 4 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | trait IndexedElementTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * The index for this endpoint. |
||
| 19 | * |
||
| 20 | * @var \SimpleSAML\XMLSchema\Type\UnsignedShortValue |
||
| 21 | */ |
||
| 22 | protected UnsignedShortValue $index; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Whether this endpoint is the default. |
||
| 26 | * |
||
| 27 | * @var \SimpleSAML\XMLSchema\Type\BooleanValue|null |
||
| 28 | */ |
||
| 29 | protected ?BooleanValue $isDefault = null; |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * Collect the value of the index property. |
||
| 34 | * |
||
| 35 | * @return \SimpleSAML\XMLSchema\Type\UnsignedShortValue |
||
| 36 | */ |
||
| 37 | public function getIndex(): UnsignedShortValue |
||
| 38 | { |
||
| 39 | return $this->index; |
||
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * Set the value of the index property. |
||
| 45 | * |
||
| 46 | * @param \SimpleSAML\XMLSchema\Type\UnsignedShortValue $index |
||
| 47 | */ |
||
| 48 | protected function setIndex(UnsignedShortValue $index): void |
||
| 49 | { |
||
| 50 | $this->index = $index; |
||
| 51 | } |
||
| 52 | |||
| 53 | |||
| 54 | /** |
||
| 55 | * Collect the value of the isDefault property. |
||
| 56 | * |
||
| 57 | * @return \SimpleSAML\XMLSchema\Type\BooleanValue|null |
||
| 58 | */ |
||
| 59 | public function getIsDefault(): ?BooleanValue |
||
| 60 | { |
||
| 61 | return $this->isDefault; |
||
| 62 | } |
||
| 63 | |||
| 64 | |||
| 65 | /** |
||
| 66 | * Set the value of the isDefault property. |
||
| 67 | * |
||
| 68 | * @param \SimpleSAML\XMLSchema\Type\BooleanValue|null $flag |
||
| 69 | */ |
||
| 70 | protected function setIsDefault(?BooleanValue $flag): void |
||
| 73 | } |
||
| 74 | } |
||
| 75 |