app\helpers\featuresHelper::getFeatures PHP Method

getFeatures() public method

@param [boolean] $array returns features array or collection
public getFeatures ( [boolean] $array = true ) : array | collection
$array [boolean]
return array | collection
    public function getFeatures($array = true)
    {
        if ($array) {
            return $this->features->toArray();
        } else {
            return $this->features;
        }
    }