Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Validator.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\Code;
7 
8 class Validator implements ValidatorInterface
9 {
13  protected $_validators = [];
14 
21  public function add(ValidatorInterface $validator)
22  {
23  $this->_validators[] = $validator;
24  }
25 
33  public function validate($className)
34  {
35  foreach ($this->_validators as $validator) {
36  $validator->validate($className);
37  }
38  }
39 }
add(ValidatorInterface $validator)
Definition: Validator.php:21
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31