You are here

protected function Drupal_CommentParser_ReturnElement::processSubElement in Coder 7.2

Processes the sub element with the specified name.

Parameters

string $name The name of the sub element to process.:

string $content The content of this sub element.:

string $whitespaceBefore The whitespace that exists before the: sub element.

Return value

void

See also

getSubElements()

File

coder_sniffer/Drupal/CommentParser/ReturnElement.php, line 69

Class

Drupal_CommentParser_ReturnElement
A class to represent return elements. We need this class because PHP_CodeSniffer_CommentParser_PairElement lacks the getWhitespaceBeforeComment() method.

Code

protected function processSubElement($name, $content, $whitespaceBefore) {
  $element = $name;
  $whitespace = $element . 'Whitespace';
  $this->{$element} = $content;
  $this->{$whitespace} = $whitespaceBefore;
}