Mpociot\ApiDoc\Parsers\RuleDescriptionParser::replaceAttributes PHP Method

replaceAttributes() protected method

protected replaceAttributes ( $description ) : string
return string
    protected function replaceAttributes($description)
    {
        foreach ($this->parameters as $parameter) {
            $description = preg_replace('/:attribute/', $parameter, $description, 1);
        }
        return $description;
    }