32 $this->configs = $configs;
38 public function get( $name ) {
39 foreach ( $this->configs as $config ) {
40 if ( $config->has( $name ) ) {
41 return $config->get( $name );
45 throw new ConfigException( __METHOD__ .
": undefined option: '$name'" );
51 public function has( $name ) {
52 foreach ( $this->configs as $config ) {
53 if ( $config->has( $name ) ) {
63class_alias( MultiConfig::class,
'MultiConfig' );