app\helpers\featuresHelper::getFeatures PHP 메소드

getFeatures() 공개 메소드

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