Пример #1
0
 /**
  * Constructs a PHP_CodeSniffer_CommentParser_CommentElement.
  *
  * @param PHP_CodeSniffer_CommentParser_DocElemement $previousElement The element that
  *                                                                    appears before this
  *                                                                    element.
  * @param array                                      $tokens          The tokens that
  *                                                                    make up this element.
  */
 public function __construct($previousElement, $tokens)
 {
     parent::__construct($previousElement, $tokens, 'comment');
 }
Пример #2
0
 /**
  * Constructs a PHP_CodeSniffer_CommentParser_CommentElement.
  *
  * @param PHP_CodeSniffer_CommentParser_DocElemement $previousElement The element
  *                                                                    that
  *                                                                    appears
  *                                                                    before this
  *                                                                    element.
  * @param array                                      $tokens          The tokens
  *                                                                    that make
  *                                                                    up this
  *                                                                    element.
  * @param PHP_CodeSniffer_File                       $phpcsFile       The file
  *                                                                    that this
  *                                                                    element is
  *                                                                    in.
  */
 public function __construct($previousElement, $tokens, PHP_CodeSniffer_File $phpcsFile)
 {
     parent::__construct($previousElement, $tokens, 'comment', $phpcsFile);
 }