public function addCommentAbove($comment) {
    if ($comment instanceof LineCommentBlockNode) {
      $this->before($comment);
    }
    elseif (is_string($comment)) {
      $this->addCommentAbove(LineCommentBlockNode::create($comment));
    }
    else {
      throw new \InvalidArgumentException();
    }
    return $this;
  }
public function addCommentAbove($comment) {
    if ($comment instanceof LineCommentBlockNode) {
      $this->before($comment);
    }
    elseif (is_string($comment)) {
      $this->addCommentAbove(LineCommentBlockNode::create($comment));
    }
    else {
      throw new \InvalidArgumentException();
    }
    return $this;
  }
public function addCommentAbove ( $ comment ) { if ( $ comment instanceof LineCommentBlockNode ) { $ this -> before ( $ comment ) ; } elseif ( is_string ( $ comment ) ) { $ this -> addCommentAbove ( LineCommentBlockNode :: create ( $ comment ) ) ; } else { throw new \ InvalidArgumentException ( ) ; } return $ this ; }
Adds a line comment block above the statement.

@param \Pharborist\LineCommentBlockNode|string $comment
The comment to add.

@return $this

@throws \InvalidArgumentException
Adds a line comment block above the statement .