configs = $configs; } /** * @inheritDoc */ public function get( $name ) { foreach ( $this->configs as $config ) { if ( $config->has( $name ) ) { return $config->get( $name ); } } throw new ConfigException( __METHOD__ . ": undefined option: '$name'" ); } /** * @inheritDoc */ public function has( $name ) { foreach ( $this->configs as $config ) { if ( $config->has( $name ) ) { return true; } } return false; } }