Eloquent\Phony\Reflection\FeatureDetector::addFeature PHP Method

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;
    }