![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/litesaml/lightsaml/src/Model/Metadata/ |
<?php namespace LightSaml\Model\Metadata; use LightSaml\Model\Context\DeserializationContext; use LightSaml\Model\Context\SerializationContext; class IndexedEndpoint extends Endpoint { /** @var int */ protected $index; /** @var bool|null */ protected $isDefault; /** * @param bool|null $isDefault * * @return IndexedEndpoint */ public function setIsDefault($isDefault) { $this->isDefault = filter_var($isDefault, FILTER_VALIDATE_BOOLEAN, ['flags' => FILTER_NULL_ON_FAILURE]); return $this; } /** * @return string|null */ public function getIsDefaultString() { return $this->isDefault ? 'true' : 'false'; } /** * @return bool|null */ public function getIsDefaultBool() { return $this->isDefault; } /** * @param int $index * * @return IndexedEndpoint */ public function setIndex($index) { $this->index = (int) $index; return $this; } /** * @return int */ public function getIndex() { return $this->index; } public function serialize(\DOMNode $parent, SerializationContext $context) { $this->attributesToXml(['index', 'isDefault'], $parent); parent::serialize($parent, $context); } public function deserialize(\DOMNode $node, DeserializationContext $context) { $this->attributesFromXml($node, ['index', 'isDefault']); parent::deserialize($node, $context); } }