Gets doc comment of current class

@return string
772326
public function getDocComment()
    {
        if ($this->docComment === null) {
            $this->docComment = parent::getDocComment();
        }
        return $this->docComment;
    }
427571
public function getCommentList()
    {
        if (is_null($this->commentList)) {
            $comments = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentCommentList::class);
            $comments->load($this->getPaymentId());
            $this->setCommentList($comments);
        }

        return $this->commentList;
    }
885542
public function getCodeFromDocComment(string $docComment): string
    {
        $startExampleKeyword = strpos($docComment, Constants::EXAMPLE_KEYWORD);
        $startCodeKeyword = strpos($docComment, Constants::CODE_KEYWORD);

        if ($startExampleKeyword !== false) {
            $matches = $this->getCodeWithExampleKeyword($docComment, $startExampleKeyword);
        } elseif ($startCodeKeyword !== false) {
            $matches = $this->getCodeWithCodeKeyword($docComment, $startCodeKeyword);
        } else {
            // None of the keywords was found
            return '';
        }

        if (!$matches) {
            return '';
        }

        $codeLines = array_filter(
            array_map(
                function ($line) {
                    return ltrim(trim($line, " \t\n\r\0\x0B"), '*');
                },
                // TODO: Check what type $matches has
                is_array($matches) ? $matches : explode("\n", (string)$matches)
            )
        );

        return rtrim(implode("\n", $codeLines) . ';');
    }
240559
public function getDocCommentText() {
        $leadingTriviaText = $this->getLeadingCommentAndWhitespaceText();
        $leadingTriviaTokens = PhpTokenizer::getTokensArrayFromContent(
            $leadingTriviaText, ParseContext::SourceElements, $this->getFullStart(), false
        );
        for ($i = \count($leadingTriviaTokens) - 1; $i >= 0; $i--) {
            $token = $leadingTriviaTokens[$i];
            if ($token->kind === TokenKind::DocCommentToken) {
                return $token->getText($this->getFileContents());
            }
        }
        return null;
    }
283383
protected function getClassDocBlockLines() {
    $lines = [];

    if (!empty($this->component_data['class_docblock_lines'])) {
      $lines = $this->component_data['class_docblock_lines'];

      if (count($lines) > 1) {
        // If there is more than one line, splice in a blank line after the
        // first one.
        array_splice($lines, 1, 0, '');
      }
    }
    elseif (!empty($this->component_data['docblock_first_line'])) {
      $lines[] = $this->component_data['docblock_first_line'];
    }

    return $lines;
  }
416563
protected function comment( $attr ) {

		$class = isset( $attr['class'] ) ? $attr['class'] : '';

		$attr['id']    = 'comment-' . get_comment_ID();
		$attr['class'] = join( ' ', get_comment_class( $class ) );

		return $attr;
	}
1374950
public function extractDoctrineTypeFromComment($comment, $currentType)
    {
        if ($comment !== null && preg_match('(\(DC2Type:(((?!\)).)+)\))', $comment, $match)) {
            return $match[1];
        }

        return $currentType;
    }
1261284
public function getLeadingCommentAndWhitespaceText() : string {
        // TODO re-tokenize comments and whitespace
        $fileContents = $this->getFileContents();
        foreach ($this->getDescendantTokens() as $token) {
            return $token->getLeadingCommentsAndWhitespaceText($fileContents);
        }
    }
1041239
public function current()
	{
		$doc = new DOMDocument();
		$object = simplexml_import_dom($doc->importNode($this->reader->expand(), true));
		return json_decode(json_encode($object));
	}
1022373
public function getDocBlock() {
    if ($this->docBlock === NULL) {
      $namespace = '\\';
      $aliases = array();
      /** @var NamespaceNode $namespace_node */
      $namespace_node = $this->closest(Filter::isInstanceOf('\Pharborist\Namespaces\NamespaceNode'));
      if ($namespace_node !== NULL) {
        $namespace = $namespace_node->getName() ? $namespace_node->getName()->getAbsolutePath() : '';
        $aliases = $namespace_node->getClassAliases();
      } else {
        /** @var RootNode $root_node */
        $root_node = $this->closest(Filter::isInstanceOf('\Pharborist\RootNode'));
        if ($root_node !== NULL) {
          $aliases = $root_node->getClassAliases();
        }
      }
      $context = new DocBlock\Context($namespace, $aliases);
      $this->docBlock = new DocBlock($this->text, $context);
    }
    return $this->docBlock;
  }
362145
public function getDocComment ( $withCommentMark = false ) {
        $docComment = $this->_reflectionMethod->getDocComment();
        if ( $withCommentMark === true ) {
            $docComment = PhpDocCommentObject::ltrim($docComment);
        } else {
            $docComment = PhpDocCommentObject::stripCommentMarks($docComment);
        }
        return $docComment;
    }
921033
public function getComment()
    {
        if (!$this->_commentFetched) {
            $this->_comment = $this->_fetchComment();
            $this->_commentFetched = true;
        }
        return $this->_comment;
    }
1165570
protected function getDocCommentParser()
    {
        if (!is_object($this->docCommentParser)) {
            $this->docCommentParser = new DocCommentParser;
            $this->docCommentParser->parseDocComment($this->getDocComment());
        }
        return $this->docCommentParser;
    }
893141
public function getDescription($docComment): string
    {
        $docComment  = (string) $docComment;
        $description = [];

        // split at each line
        foreach (preg_split(self::REGEX_SPLIT_BY_NEWLINE, $docComment) as $line) {
            // if line does not start with asterisk, or only contains an asterisk, do nothing
            if (!preg_match(self::REGEX_LINE_HAS_CONTENT, $line, $matches)) {
                continue;
            }

            // trim whitespace and remove leading asterisk
            $info = trim(preg_replace(self::REGEX_REMOVE_LEADING_ASTERISK, '', trim($matches[1])));

            // add to description if info not start with a tag marked for skipping (annotation, phpDoc tag)
            $addInfo = true;

            foreach (self::DESCRIPTION_SKIP_TAGS as $skipTag) {
                if (substr($info, 0, strlen($skipTag)) === $skipTag) {
                    $addInfo = false;
                }
            }

            if ($addInfo) {
                $description[] = $info;
            }
        }

        return implode("\n", $description);
    }
163667
public function getDocumentClass()
    {
        $documentClass = false;
        if (isset($this->schema->{'x-documentClass'})) {
            $documentClass = $this->schema->{'x-documentClass'};
        }
        return $documentClass;
    }
278882
public function getExportDocumentClass_v2() {
		$class = new StdClass;

		// Standard-Export-Stuff
		if($this->getInvoiceNumber() !== null)
			$class->invoiceNumber = $this->getInvoiceNumber();

		$class->exportType = $this->getExportType();

		if($this->getExportTypeDescription() !== null)
			$class->exportTypeDescription = $this->getExportTypeDescription();
		else if($this->getExportType() === self::EXPORT_TYPE_OTHER)
			throw new Exception('ExportTypeDescription must filled out if Export-Type is OTHER! - ' .
				'Export-Class will not generated now');

		if($this->getTermsOfTrade() !== null)
			$class->termsOfTrade = $this->getTermsOfTrade();

		$class->placeOfCommital = $this->getPlaceOfCommittal();
		$class->additionalFee = $this->getAdditionalFee();

		if($this->getPermitNumber() !== null)
			$class->permitNumber = $this->getPermitNumber();

		if($this->getAttestationNumber() !== null)
			$class->attestationNumber = $this->getAttestationNumber();

		// Add rest (Elements)
		if($this->getWithElectronicExportNotification() !== null) {
			$class->WithElectronicExportNtfctn = new StdClass;
			$class->WithElectronicExportNtfctn->active = (int) $this->getWithElectronicExportNotification();
		}

		// Check if child-class is being used
		if($this->getExportDocPosition() !== null) {
			// Handle non-arrays... (Backward compatibility)
			if(! is_array($this->getExportDocPosition()))
				$class->ExportDocPosition = $this->getExportDocPosition()->getExportDocPositionClass_v2();
			else {
				$pos = $this->getExportDocPosition();
				foreach($pos as $key => &$exportDoc)
					$class->ExportDocPosition[$key] = $exportDoc->getExportDocPositionClass_v2();
			}
		}

		return $class;
	}
1268975
public function getCssClass()
    {
        $class = self::CLASS_DEFAULT;

        if ($this->userView) {
            if ($this->new_post_at > $this->userView->new_last_seen) {
                $class = self::CLASS_NEW;
            } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                $class = self::CLASS_EDITED;
            }
        } else {
            $class = self::CLASS_NEW;
        }
        return $class;
    }