46 $this->configs = $configs;
52 public function get( $name ) {
53 foreach ( $this->configs as $config ) {
54 if ( $config->has( $name ) ) {
55 return $config->get( $name );
59 throw new ConfigException( __METHOD__ .
": undefined option: '$name'" );
65 public function has( $name ) {
66 foreach ( $this->configs as $config ) {
67 if ( $config->has( $name ) ) {
77class_alias( MultiConfig::class,
'MultiConfig' );