private function resolveParameters()
    {
        // Parameters need special handling when adding
        foreach ($this->config['parameters'] as $name => $param) {
            if (!is_array($param)) {
                throw new \InvalidArgumentException(
                    "Parameters must be arrays, {$this->config['name']}.$name is ".gettype($param)
                );
            }
            $param['name'] = $name;
            $this->parameters[$name] = new Parameter(
                $param,
                ['description' => $this->description]
            );
        }

        if ($this->config['additionalParameters']) {
            if (is_array($this->config['additionalParameters'])) {
                $this->additionalParameters = new Parameter(
                    $this->config['additionalParameters'],
                    ['description' => $this->description]
                );
            } else {
                $this->additionalParameters = $this->config['additionalParameters'];
            }
        }
    }
private function resolveParameters()
    {
        // Parameters need special handling when adding
        foreach ($this->config['parameters'] as $name => $param) {
            if (!is_array($param)) {
                throw new \InvalidArgumentException(
                    "Parameters must be arrays, {$this->config['name']}.$name is ".gettype($param)
                );
            }
            $param['name'] = $name;
            $this->parameters[$name] = new Parameter(
                $param,
                ['description' => $this->description]
            );
        }

        if ($this->config['additionalParameters']) {
            if (is_array($this->config['additionalParameters'])) {
                $this->additionalParameters = new Parameter(
                    $this->config['additionalParameters'],
                    ['description' => $this->description]
                );
            } else {
                $this->additionalParameters = $this->config['additionalParameters'];
            }
        }
    }
private function resolveParameters ( ) { // Parameters need special handling when adding foreach ( $ this -> config [ 'parameters' ] as $ name => $ param ) { if ( ! is_array ( $ param ) ) { throw new \ InvalidArgumentException ( "Parameters must be arrays, {$this->config['name']}.$name is " . gettype ( $ param ) ) ; } $ param [ 'name' ] = $ name ; $ this -> parameters [ $ name ] = new Parameter ( $ param , [ 'description' => $ this -> description ] ) ; } if ( $ this -> config [ 'additionalParameters' ] ) { if ( is_array ( $ this -> config [ 'additionalParameters' ] ) ) { $ this -> additionalParameters = new Parameter ( $ this -> config [ 'additionalParameters' ] , [ 'description' => $ this -> description ] ) ; } else { $ this -> additionalParameters = $ this -> config [ 'additionalParameters' ] ; } } }
Process the description and extract the parameter config

@return void
Process the description and extract the parameter config