Jamm\Memory\Tests\CommandsListCheck::getArgumentsOfDocMethod PHP Метод

getArgumentsOfDocMethod() защищенный Метод

protected getArgumentsOfDocMethod ( $doc_method, $name )
    protected function getArgumentsOfDocMethod($doc_method, $name)
    {
        if (!isset($doc_method['arguments']) || !is_array($doc_method['arguments'])) {
            return [];
        }
        $arr = [];
        foreach ($doc_method['arguments'] as $argument) {
            if (is_array($argument['name'])) {
                $argument['name'] = $argument['name'][0];
                continue;
            }
            $arr[] = str_replace('-', '_', strtolower($argument['name']));
        }
        return $arr;
    }