protected function getConfigValue($key, $defaultValue = null) { if (array_key_exists($key, $this->configCache)) { return $this->configCache[$key]; } $this->configCache[$key] = !empty($this->config) ? $this->config->get($key, $defaultValue) : $defaultValue; return $this->configCache[$key]; }
protected function getConfigFinalRules(AbstractConfig $config) { $rules = $config->getRules(); if ($config->isFinalClass()) { foreach ($rules as $name => $info) { if (!empty($info['final'])) { $rules[$name]['required'] = true; } } } return $rules; }
protected function build() { parent::build(); if (!empty($this->data['types'])) { $this->typesList->addTypes($this->data['types']); } }