* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ abstract class ParamAbstract { /** @var string */ protected $name; /** @var string */ protected $type; /** @var string */ protected $description; /** @var boolean */ protected $required; /** @var array */ protected $enum; /** @var integer */ protected $minLength; /** @var integer */ protected $maxLength; /** @var string */ protected $pattern; /** @var string */ protected $format; /** @var integer */ protected $minimum; /** @var integer */ protected $maximum; /** @var integer */ protected $multipleOf; public function __construct(array $values) { $this->name = isset($values['name']) ? $values['name'] : null; $this->type = isset($values['type']) ? $values['type'] : null; $this->description = isset($values['description']) ? $values['description'] : null; $this->required = isset($values['required']) ? $values['required'] : null; $this->enum = isset($values['enum']) ? $values['enum'] : null; $this->minLength = isset($values['minLength']) ? $values['minLength'] : null; $this->maxLength = isset($values['maxLength']) ? $values['maxLength'] : null; $this->pattern = isset($values['pattern']) ? $values['pattern'] : null; $this->format = isset($values['format']) ? $values['format'] : null; $this->minimum = isset($values['minimum']) ? $values['minimum'] : null; $this->maximum = isset($values['maximum']) ? $values['maximum'] : null; $this->multipleOf = isset($values['multipleOf']) ? $values['multipleOf'] : null; } /** * @return string */ public function getName() { return $this->name; } /** * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getType() { return $this->type; } /** * @param string $type */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return boolean */ public function isRequired() { return $this->required; } /** * @param boolean $required */ public function setRequired($required) { $this->required = $required; } /** * @return array */ public function getEnum() { return $this->enum; } /** * @param array $enum */ public function setEnum($enum) { $this->enum = $enum; } /** * @return int */ public function getMinLength() { return $this->minLength; } /** * @param int $minLength */ public function setMinLength($minLength) { $this->minLength = $minLength; } /** * @return int */ public function getMaxLength() { return $this->maxLength; } /** * @param int $maxLength */ public function setMaxLength($maxLength) { $this->maxLength = $maxLength; } /** * @return string */ public function getPattern() { return $this->pattern; } /** * @param string $pattern */ public function setPattern($pattern) { $this->pattern = $pattern; } /** * @return string */ public function getFormat() { return $this->format; } /** * @param string $format */ public function setFormat($format) { $this->format = $format; } /** * @return int */ public function getMinimum() { return $this->minimum; } /** * @param int $minimum */ public function setMinimum($minimum) { $this->minimum = $minimum; } /** * @return int */ public function getMaximum() { return $this->maximum; } /** * @param int $maximum */ public function setMaximum($maximum) { $this->maximum = $maximum; } /** * @return int */ public function getMultipleOf() { return $this->multipleOf; } /** * @param int $multipleOf */ public function setMultipleOf($multipleOf) { $this->multipleOf = $multipleOf; } } __halt_compiler();----SIGNATURE:----ByIJQCMJl5ltbs6PPVbFiPezbJ9dSo2VyfrDMGenVMYWRD1IH7FQH2qcp/L8V1mTz7jYHcHrwP+DleXRZ3hP6gTg1ARXMam1MYeZkgjcHwcpDgKygHp+qHqEDot1uZoo2NZf/B5qw3glmuyToviujSgX+k8X9tDIU+2Z2aiJgteMjzQPG1D0oMdtJRUUJA1frgHWI+AnoxWaVE0ACWNyIdw5Q23THJoQ5wWwRAF350hQN5rqCibUGpeu2SLmY+R7TQtDYjyj/nwEQgv/h7CfesyFxMuhs3dlNXCh18/hCT7XLnAcp34FzZP2uJEB3ij4KeJsDA+8aZnCVtD+y/UjW12CrhWFoa1K76rWj3nGIrTmmBFW+OlM6gc1KgslgWNsn9X6i7Ndqablep551e6lMy8hwfyEFuJKBBvZBfCS2xjfC70LYUcRBwyF1ZT+tWIxZPKLyrU7eYIQ2M9FMCCeTrIFTR+x8aQ3AylC+6wIZUSHlDPpyLxjaQBm1s2iTjO74hZV/mQFmx1rQVCM0T+Q4xTkwozmCutF75VawGNxE4YkAfoRewSXHmJlWc5GqSA63I7dsnyf3yF8W+SVA/k7pKIvpN4KmhsdoviRjNhCl1tgRMIE6vExiIzDUsSiAWTQ7WA38VqAUzm2f+EnkjEAUWbLEYMCkJXNfdxQuMoH++k=----ATTACHMENT:----NzA5NTU2OTA2MTEzNzkyOSA3OTMzNzU2NzY5MTk3NjAwIDI3ODgyNjk0NTA2NDM2Mg==