__construct() public méthode

public __construct ( array $properties )
$properties array
Exemple #1
0
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     if ($this->code !== null) {
         $this->code = (int) $this->code;
     }
 }
Exemple #2
0
 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);
         }
     }
 }
Exemple #3
0
 /**
  * @param array $values
  */
 public function __construct(array $values = array())
 {
     parent::__construct($values);
     $this->notes = $this->removePreamble($this->notes);
 }
Exemple #4
0
 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;
         }
     }
 }
Exemple #5
0
 public function __construct(array $values = array())
 {
     parent::__construct($values);
 }