Exemplo n.º 1
0
 /**
  * Constructor ErrorCollection.
  * @param array $values Errors which need to add in collection.
  * @throws ArgumentTypeException
  */
 public function __construct(array $values = null)
 {
     if ($values) {
         foreach ($values as $value) {
             $this->checkType($value);
         }
     }
     unset($value);
     parent::__construct($values);
 }
Exemplo n.º 2
0
 public function __construct(array $values = null)
 {
     parent::__construct($values);
 }