src/ConfigurationReader/GeneratorOptions.php
protected function parseOptions($filename)
    {
        $options = $this->loadYaml($filename);
        if (is_array($options)) {
            $this->options = $options;
        } else {
            throw new \InvalidArgumentException(sprintf('Settings contained by "%s" are not valid as the settings are not contained by an array: "%s"', $filename, gettype($options)), __LINE__);
        }
        return $this;
    }
protected function parseOptions($filename)
    {
        $options = $this->loadYaml($filename);
        if (is_array($options)) {
            $this->options = $options;
        } else {
            throw new \InvalidArgumentException(sprintf('Settings contained by "%s" are not valid as the settings are not contained by an array: "%s"', $filename, gettype($options)), __LINE__);
        }
        return $this;
    }
protected function parseOptions ( $ filename ) { $ options = $ this -> loadYaml ( $ filename ) ; if ( is_array ( $ options ) ) { $ this -> options = $ options ; } else { throw new \ InvalidArgumentException ( sprintf ( 'Settings contained by "%s" are not valid as the settings are not contained by an array: "%s"' , $ filename , gettype ( $ options ) ) , __LINE__ ) ; } return $ this ; }
Parse options for generator
@param string $filename options's file to parse
@return GeneratorOptions
Parse options for generator