public function getIntervalNameAttribute()
    {
        $intervals = Period::getAllIntervals();
        return (isset($intervals[$this->interval]) ? $intervals[$this->interval] : null);
    }
public function getIntervalNameAttribute()
    {
        $intervals = Period::getAllIntervals();
        return (isset($intervals[$this->interval]) ? $intervals[$this->interval] : null);
    }
public function getIntervalNameAttribute ( ) { $ intervals = Period :: getAllIntervals ( ) ; return ( isset ( $ intervals [ $ this -> interval ] ) ? $ intervals [ $ this -> interval ] : null ) ; }
Get Interval Name

@return mixed string|null
Get Interval Name