메소드 |
설명 |
|
__construct ( array $features = null, array $supported = [] ) |
Construct a new feature detector. |
|
addFeature ( string $feature, callable $callback ) |
Add a custom feature. |
|
checkInternalClass ( string $className ) : boolean |
Check that the specified class is defined by the PHP core, or an
extension. |
|
checkInternalMethod ( string $className, string $methodName ) : boolean |
Check that the specified method is defined by the PHP core, or an
extension. |
|
checkStatement ( string $source, boolean $useClosure = true ) : boolean |
Check that the supplied syntax is valid. |
|
checkToken ( string $keyword, string $constantName ) : boolean |
Check that a keyword is interpreted as a particular token type. |
|
features ( ) : callable>\array |
Get the features. |
|
instance ( ) : FeatureDetector |
Get the static instance of this detector. |
|
isSupported ( string $feature ) : boolean |
Returns true if the specified feature is supported by the current
runtime environment. |
|
runtime ( ) : string |
Determine the current PHP runtime. |
|
standardFeatures ( ) : callable>\array |
Get the standard feature detection callbacks. |
|
supported ( ) : bool>\array |
Get the known feature support. |
|
uniqueSymbolName ( ) : string |
Returns a symbol name that is unique for this process execution. |
|