Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CompositeValidator.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
19  private $validators;
20 
26  public function __construct(array $validators)
27  {
28  $this->validators = $validators;
29  }
30 
34  public function validate($configData)
35  {
36  foreach ($this->validators as $validator) {
37  $validator->validate($configData);
38  }
39  }
40 }