FeaturePhp/Model/Model.php
public function getFeature($featureName, $permissive = false) {
        $feature = Feature::findByName($this->features, $featureName, $permissive);
        if (!$feature)
            throw new ModelException("the model has no feature named \"$featureName\"");
        return $feature;
    }
public function getFeature($featureName, $permissive = false) {
        $feature = Feature::findByName($this->features, $featureName, $permissive);
        if (!$feature)
            throw new ModelException("the model has no feature named \"$featureName\"");
        return $feature;
    }
public function getFeature ( $ featureName , $ permissive = false ) { $ feature = Feature :: findByName ( $ this -> features , $ featureName , $ permissive ) ; if ( ! $ feature ) throw new ModelException ( "the model has no feature named \"$featureName\"" ) ; return $ feature ; }
Returns a feature in the feature model with a given name.
@param string $featureName
@param bool $permissive
@return Feature
Returns a feature in the feature model with a given name .