public function getResponses($osType)
    {
        if (!isset($this->handlers[$osType])) {
            throw new \RuntimeException("OS type {$osType} not supported");
        }

        if (!method_exists($this->handlers[$osType], 'getResponses')) {
            throw new \RuntimeException("Handler for OS type {$osType} not supported getResponses() method");
        }

        return $this->handlers[$osType]->getResponses();
    }
public function getResponses($osType)
    {
        if (!isset($this->handlers[$osType])) {
            throw new \RuntimeException("OS type {$osType} not supported");
        }

        if (!method_exists($this->handlers[$osType], 'getResponses')) {
            throw new \RuntimeException("Handler for OS type {$osType} not supported getResponses() method");
        }

        return $this->handlers[$osType]->getResponses();
    }
public function getResponses ( $ osType ) { if ( ! isset ( $ this -> handlers [ $ osType ] ) ) { throw new \ RuntimeException ( "OS type {$osType} not supported" ) ; } if ( ! method_exists ( $ this -> handlers [ $ osType ] , 'getResponses' ) ) { throw new \ RuntimeException ( "Handler for OS type {$osType} not supported getResponses() method" ) ; } return $ this -> handlers [ $ osType ] -> getResponses ( ) ; }
Get responses from handler

@param  string            $osType
@return array
@throws \RuntimeException
Get responses from handler