| @@ 21-46 (lines=26) @@ | ||
| 18 | * unknown; it is not assumed to be UTC. |
|
| 19 | * @package AlgoWeb\xsdTypes |
|
| 20 | */ |
|
| 21 | class xsGDay extends xsAnySimpleType |
|
| 22 | { |
|
| 23 | use MinMaxTrait; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Construct. |
|
| 27 | * |
|
| 28 | * @param string $value |
|
| 29 | */ |
|
| 30 | public function __construct($value) |
|
| 31 | { |
|
| 32 | parent::__construct($value); |
|
| 33 | $this->setWhiteSpaceFacet('collapse'); |
|
| 34 | } |
|
| 35 | ||
| 36 | public function fixValue() |
|
| 37 | { |
|
| 38 | parent::fixValue(); |
|
| 39 | $dayObject = CalenderFactory::fromDay($this->value); |
|
| 40 | } |
|
| 41 | ||
| 42 | protected function isOK() |
|
| 43 | { |
|
| 44 | $this->CheckMinMax(CalenderFactory::fromDay($this->value)); |
|
| 45 | } |
|
| 46 | } |
|
| 47 | ||
| @@ 20-45 (lines=26) @@ | ||
| 17 | * unknown; it is not assumed to be UTC. |
|
| 18 | * @package AlgoWeb\xsdTypes |
|
| 19 | */ |
|
| 20 | class xsGMonth extends xsAnySimpleType |
|
| 21 | { |
|
| 22 | use MinMaxTrait; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Construct. |
|
| 26 | * |
|
| 27 | * @param string $value |
|
| 28 | */ |
|
| 29 | public function __construct($value) |
|
| 30 | { |
|
| 31 | parent::__construct($value); |
|
| 32 | $this->setWhiteSpaceFacet('collapse'); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function fixValue() |
|
| 36 | { |
|
| 37 | parent::fixValue(); |
|
| 38 | $monthObject = CalenderFactory::fromMonth($this->value); |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function isOK() |
|
| 42 | { |
|
| 43 | $this->CheckMinMax(CalenderFactory::fromMonth($this->value)); |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 20-46 (lines=27) @@ | ||
| 17 | * unknown; it is not assumed to be UTC. |
|
| 18 | * @package AlgoWeb\xsdTypes |
|
| 19 | */ |
|
| 20 | class xsGMonthDay extends xsAnySimpleType |
|
| 21 | { |
|
| 22 | use MinMaxTrait; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Construct. |
|
| 26 | * |
|
| 27 | * @param string $value |
|
| 28 | */ |
|
| 29 | public function __construct($value) |
|
| 30 | { |
|
| 31 | parent::__construct($value); |
|
| 32 | $this->setWhiteSpaceFacet('collapse'); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function fixValue() |
|
| 36 | { |
|
| 37 | parent::fixValue(); |
|
| 38 | $monthDayObject = CalenderFactory::fromMonthDay($this->value); |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function isOK() |
|
| 42 | { |
|
| 43 | $this->CheckMinMax(CalenderFactory::fromMonthDay($this->value)); |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 20-46 (lines=27) @@ | ||
| 17 | * unknown; it is not assumed to be UTC. |
|
| 18 | * @package AlgoWeb\xsdTypes |
|
| 19 | */ |
|
| 20 | class xsGYear extends xsAnySimpleType |
|
| 21 | { |
|
| 22 | use MinMaxTrait; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Construct. |
|
| 26 | * |
|
| 27 | * @param string $value |
|
| 28 | */ |
|
| 29 | public function __construct($value) |
|
| 30 | { |
|
| 31 | parent::__construct($value); |
|
| 32 | $this->setWhiteSpaceFacet('collapse'); |
|
| 33 | } |
|
| 34 | ||
| 35 | public function fixValue() |
|
| 36 | { |
|
| 37 | parent::fixValue(); |
|
| 38 | $yearObject = CalenderFactory::fromYear($this->value); |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function isOK() |
|
| 42 | { |
|
| 43 | $this->CheckMinMax(CalenderFactory::fromYear($this->value)); |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 21-47 (lines=27) @@ | ||
| 18 | * unknown; it is not assumed to be UTC. |
|
| 19 | * @package AlgoWeb\xsdTypes |
|
| 20 | */ |
|
| 21 | class xsGYearMonth extends xsAnySimpleType |
|
| 22 | { |
|
| 23 | use MinMaxTrait; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Construct. |
|
| 27 | * |
|
| 28 | * @param string $value |
|
| 29 | */ |
|
| 30 | public function __construct($value) |
|
| 31 | { |
|
| 32 | parent::__construct($value); |
|
| 33 | $this->setWhiteSpaceFacet('collapse'); |
|
| 34 | } |
|
| 35 | ||
| 36 | public function fixValue() |
|
| 37 | { |
|
| 38 | parent::fixValue(); |
|
| 39 | $yearMonthObject = CalenderFactory::fromYearMonth($this->value); |
|
| 40 | } |
|
| 41 | ||
| 42 | protected function isOK() |
|
| 43 | { |
|
| 44 | $this->CheckMinMax(CalenderFactory::fromYearMonth($this->value)); |
|
| 45 | } |
|
| 46 | } |
|
| 47 | ||