Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Pool.php
Go to the documentation of this file.
1 <?php
8 
12 class Pool
13 {
17  protected $validators = [];
18 
22  public function __construct(array $validators = [])
23  {
24  $this->validators = $validators;
25  }
26 
33  public function getValidators($type)
34  {
35  return isset($this->validators[$type]) ? $this->validators[$type] : [];
36  }
37 }
__construct(array $validators=[])
Definition: Pool.php:22
$type
Definition: item.phtml:13