Annotate some APIs as @internal

This commit is contained in:
nikic 2014-09-30 20:23:25 +02:00
parent 16dff7c2e6
commit 3d40e2217d
4 changed files with 14 additions and 1 deletions

View File

@ -25,6 +25,8 @@ class DNumber extends Scalar
}
/**
* @internal
*
* Parses a DNUMBER token like PHP would.
*
* @param string $str A string number

View File

@ -25,6 +25,8 @@ class LNumber extends Scalar
}
/**
* @internal
*
* Parses an LNUMBER token (dec, hex, oct and bin notations) like PHP would.
*
* @param string $str A string number

View File

@ -36,6 +36,8 @@ class String extends Scalar
}
/**
* @internal
*
* Parses a string token.
*
* @param string $str String token content
@ -60,6 +62,8 @@ class String extends Scalar
}
/**
* @internal
*
* Parses escape sequences in strings (all string types apart from single quoted).
*
* @param string $str String without quotes
@ -79,7 +83,7 @@ class String extends Scalar
);
}
public static function parseCallback($matches) {
private static function parseCallback($matches) {
$str = $matches[1];
if (isset(self::$replacements[$str])) {
@ -92,6 +96,8 @@ class String extends Scalar
}
/**
* @internal
*
* Parses a constant doc string.
*
* @param string $startToken Doc string start token content (<<<SMTHG)

View File

@ -83,6 +83,9 @@ class Class_ extends Node\Stmt
return $methods;
}
/**
* @internal
*/
public static function verifyModifier($a, $b) {
if ($a & 7 && $b & 7) {
throw new Error('Multiple access type modifiers are not allowed');