public function __construct(array $values = array()) { parent::__construct($values); if ($this->code !== null) { $this->code = (int) $this->code; } }
public function __construct(array $values = array()) { parent::__construct($values); // required accepts both json syntax and comma-separated syntax. if (is_string($this->required)) { if (strpos($this->required, '[') !== false) { $this->required = $this->decode($this->required); } else { $this->required = preg_split('/(\\s)*,(\\s)*/', $this->required); } } }
/** * @param array $values */ public function __construct(array $values = array()) { parent::__construct($values); $this->notes = $this->removePreamble($this->notes); }
public function __construct(array $values = array()) { parent::__construct($values); Swagger::checkDataType($this->type, $this->_context); if (is_string($this->enum)) { $values = $this->decode($this->enum); if (is_object($values)) { $this->enum = array(); foreach ($values as $key => $value) { $this->enum[] = $key . '-' . $value; } } else { $this->enum = $values; } } }
public function __construct(array $values = array()) { parent::__construct($values); }