Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Eloquent
Phony
Reflection
FeatureDetector
addFeature
Eloquent\Phony\Reflection\FeatureDetector::addFeature PHP Method
FeatureDetector Class Documentation
显示文件
Open project: eloquent/phony
addFeature()
public
method
The callback will be passed this detector as the first argument. The return value will be interpreted as a boolean.
public
addFeature
(
string
$feature
,
callable
$callback
)
$feature
string
The feature.
$callback
callable
The feature detection callback.
public function addFeature($feature, $callback) { $this->features[$feature] = $callback; }
FeatureDetector
__construct
addFeature
checkInternalClass
checkInternalMethod
checkStatement
checkToken
features
instance
isSupported
runtime
standardFeatures
supported
uniqueSymbolName