Webiny\Component\Rest\Parser\ParameterParser::__construct PHP Method

__construct() public method

Base constructor.
public __construct ( array $paramList, ConfigObject $paramAnnotations )
$paramList array
$paramAnnotations Webiny\Component\Config\ConfigObject
    public function __construct($paramList, $paramAnnotations)
    {
        $this->paramList = $paramList;
        $this->paramAnnotations = !is_object($paramAnnotations) ? new ConfigObject([$paramAnnotations]) : $paramAnnotations;
    }