You are here

protected function Drupal_CommentParser_FunctionCommentParser::parseReturn in Coder 7.2

Parses return elements.

Parameters

array(string) $tokens The tokens that comprise this sub element.:

Return value

Drupal_CommentParser_ReturnElement

File

coder_sniffer/Drupal/CommentParser/FunctionCommentParser.php, line 66

Class

Drupal_CommentParser_FunctionCommentParser
Parses function doc comments.

Code

protected function parseReturn($tokens) {
  $return = new Drupal_CommentParser_ReturnElement($this->previousElement, $tokens, 'return', $this->phpcsFile);
  $this->return = $return;
  return $return;
}