public function mapSection($section, $className)
    {
        if (false === class_exists($className)) {
            throw new \InvalidArgumentException('This section class does not exist');
        } elseif (false === is_a($className, 'Supervisor\Configuration\Section', true)) {
            throw new \InvalidArgumentException('This section class must implement Supervisor\Configuration\Section');
        }

        $this->sectionMap[$section] = $className;
    }
public function mapSection($section, $className)
    {
        if (false === class_exists($className)) {
            throw new \InvalidArgumentException('This section class does not exist');
        } elseif (false === is_a($className, 'Supervisor\Configuration\Section', true)) {
            throw new \InvalidArgumentException('This section class must implement Supervisor\Configuration\Section');
        }

        $this->sectionMap[$section] = $className;
    }
public function mapSection ( $ section , $ className ) { if ( false === class_exists ( $ className ) ) { throw new \ InvalidArgumentException ( 'This section class does not exist' ) ; } elseif ( false === is_a ( $ className , 'Supervisor\Configuration\Section' , true ) ) { throw new \ InvalidArgumentException ( 'This section class must implement Supervisor\Configuration\Section' ) ; } $ this -> sectionMap [ $ section ] = $ className ; }
Adds or overrides a default section mapping.

@param string $section
@param string $className
Adds or overrides a default section mapping .