getMemberComment() public static method

public static getMemberComment ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : string
$phpcsFile PHP_CodeSniffer_File
$stackPtr integer
return string
 private static function extractPropertyIfFound(PHP_CodeSniffer_File $phpcsFile, int $stackPtr)
 {
     $tokens = $phpcsFile->getTokens();
     $property = $tokens[$stackPtr];
     // Is it a property or a random variable?
     if (!(count($property['conditions']) === 1 && in_array(reset($property['conditions']), [T_CLASS, T_TRAIT]))) {
         return;
     }
     if ($comment = MemberComment::getMemberComment($phpcsFile, $stackPtr)) {
         self::$propertyList[] = ['type' => $comment];
     }
 }