Method | Description | |
---|---|---|
__construct ( $root, Psr\Log\LoggerInterface $logger, $match_type = self::MATCH_HEAD ) | ||
functype ( $class_name, $name ) : [type1, | Fetch the function or class method return value's type | |
getPseudoProperties ( ReflectionClass $reflection ) | ||
info ( $class_name, $pattern, $static_mode = 'both', $public_only = true ) | Fetch the completion list. | |
location ( string $class_name, string $method_name = null ) : [path, | Fetch function or class method's source file path and their defination line number. | |
nsuse ( string $path ) : [ | Fetch the php script's namespace and imports(by use) list. | |
proptype ( $class_name, $name ) : [type1, | Fetch class attribute's type by @var annotation | |
psr4ns ( $path ) | generate psr4 namespace according composer.json and file path | |
setMatchType ( string $matchType ) | Set type of matching | |
setServer ( Lvht\MsgpackRpc\Server $server ) |
Method | Description | |
---|---|---|
arrayUnique ( $array ) | ||
classInfo ( $class_name, $pattern, $is_static, $public_only ) | ||
clearDoc ( $doc ) | ||
doc ( string $class_name, string $name, $is_method = true ) | Fetch function, class method or class attribute's docblock | |
fixRelativeType ( $path, $names ) | ||
functionOrConstantInfo ( $pattern ) | ||
getConstPath ( $const_name, ReflectionClass $reflection ) | ||
getConstantsInfo ( $pattern ) | ||
getFunctionInfo ( $name, $pattern = null ) | ||
getMethodInfo ( $method, $pattern = null ) | ||
getModifierSymbols ( ) : array | ||
getModifiers ( $reflection ) | ||
getPropertyInfo ( $property, $pattern ) | ||
matchPattern ( $pattern, $fullString ) : boolean | ||
translateStaticMode ( string $mode ) : boolean | null | ||
trim ( $str ) | ||
typeByDoc ( $path, $doc, $class_name ) | ||
typeByPropertyRead ( $doc, $path, $name ) | ||
typeByReturnType ( $class_name, $name ) |
public __construct ( $root, Psr\Log\LoggerInterface $logger, $match_type = self::MATCH_HEAD ) | ||
$logger | Psr\Log\LoggerInterface |
public functype ( $class_name, $name ) : [type1, | ||
return | [type1, |
public getPseudoProperties ( ReflectionClass $reflection ) | ||
$reflection | ReflectionClass |
public info ( $class_name, $pattern, $static_mode = 'both', $public_only = true ) |
public proptype ( $class_name, $name ) : [type1, | ||
return | [type1, |
public psr4ns ( $path ) |
public setMatchType ( string $matchType ) | ||
$matchType | string |
public setServer ( Lvht\MsgpackRpc\Server $server ) | ||
$server | Lvht\MsgpackRpc\Server |