* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class MapType extends ObjectType { /** @var TypeInterface */ protected $additionalProperties; /** @var int */ protected $minProperties; /** @var int */ protected $maxProperties; /** * @return bool|TypeInterface */ public function getAdditionalProperties() { return $this->additionalProperties; } /** * @param bool|TypeInterface $additionalProperties * @return self * @throws InvalidSchemaException */ public function setAdditionalProperties($additionalProperties): self { if (!is_bool($additionalProperties) && !$additionalProperties instanceof TypeInterface) { throw new InvalidSchemaException('Additional properties must be either a boolean or TypeInterface'); } if ($additionalProperties === false) { throw new InvalidSchemaException('Map additional properties must not be false only true is allowed as boolean value'); } elseif ($additionalProperties instanceof TypeInterface) { TypeAssert::assertProperty($additionalProperties); } $this->additionalProperties = $additionalProperties; return $this; } /** * @return int */ public function getMinProperties(): ?int { return $this->minProperties; } /** * @param int $minProperties * @return self */ public function setMinProperties(int $minProperties): self { $this->minProperties = $minProperties; return $this; } /** * @return int */ public function getMaxProperties(): ?int { return $this->maxProperties; } /** * @param int $maxProperties * @return self */ public function setMaxProperties(int $maxProperties): self { $this->maxProperties = $maxProperties; return $this; } public function toArray(): array { return array_merge(parent::toArray(), array_filter([ 'type' => 'object', 'additionalProperties' => $this->additionalProperties, 'minProperties' => $this->minProperties, 'maxProperties' => $this->maxProperties, ], function($value){ return $value !== null; })); } public function __clone() { if ($this->additionalProperties !== null) { $additionalProperties = $this->additionalProperties; if ($additionalProperties instanceof TypeInterface) { $this->additionalProperties = clone $additionalProperties; } } } } __halt_compiler();----SIGNATURE:----qEfNH1xEs3Qj3Ki7Fmhe4/Sy+SHt2cOen+qi1PuPs0xh70z+VgMFzmnUVLYssGrzrlU5IbLYAu+p3Npf2Wc+DACvQckext34Hb8UySG4REPbhilFeniaf5HCLN+ZKhcXR58dDviIIc+6Zm/gbMZpXEHFcsapywheS3WN6w+anDQurP0S8ScfhN8G3/2wo/q8imu7Fy1n89hCN2PtJXOeA4FzCFwyrHWwbe+2nLUwM7QaxKhr+uVk+/fHAMCw0RZHx99bBVPkDn1WoEQW/OB2s7Cf06wAomCTlHWaxaMZjENDKlyhmsPoDE5J3LpGn5iSPETNdXSlT425xuYByZD3FUUArFM0oA/gn8ukhObIexoi4vZuPg/1G1Huo1TdCZvkcjkueapHxh+7bO2q5i+mepLCGADOsrsUCigNXEz6If+4qgVcBOK7g2SwuPcn4clDmu93dcZskj/dEr2WqRj1WsQnkK8lYpXn2lYyeCYoIJ426/Gq7ETfguchfLNmB0CLIm6du2lwCRnZ4dRKTfEeld+fGEM7Cx0EwapqK1QDF7wMkLB4fge9aSE1bIEGZGCB8ToReMXscsdm4H/xLgH4K7eXjTedy5bzNHwW7ayAg9FqJ45CTO5r15hzv7ps7TwXFfJoct7oyUYKTKmQivR/H/n8bRBVAIrr+Z7PhQGn+u0=----ATTACHMENT:----MjgzODA5NjI5NzczNTExOSAzODYxNjE1MDIxNDYwNDc3IDIzMzM3ODU5NjM2OTA5NzY=