public function getName()
    {
        switch ($this->ofWeek) {
            case Carbon::MONDAY:
                $name = 'Monday';
                break;

            case Carbon::TUESDAY:
                $name = 'Tuesday';
                break;

            case Carbon::WEDNESDAY:
                $name = 'Wednesday';
                break;

            case Carbon::THURSDAY:
                $name = 'Thursday';
                break;

            case Carbon::FRIDAY:
                $name = 'Friday';
                break;

            case Carbon::SATURDAY:
                $name = 'Saturday';
                break;

            case Carbon::SUNDAY:
                $name = 'Sunday';
                break;

            default:
                throw new LogicException;
        }

        return $name;
    }
public function getName()
    {
        switch ($this->ofWeek) {
            case Carbon::MONDAY:
                $name = 'Monday';
                break;

            case Carbon::TUESDAY:
                $name = 'Tuesday';
                break;

            case Carbon::WEDNESDAY:
                $name = 'Wednesday';
                break;

            case Carbon::THURSDAY:
                $name = 'Thursday';
                break;

            case Carbon::FRIDAY:
                $name = 'Friday';
                break;

            case Carbon::SATURDAY:
                $name = 'Saturday';
                break;

            case Carbon::SUNDAY:
                $name = 'Sunday';
                break;

            default:
                throw new LogicException;
        }

        return $name;
    }
public function getName ( ) { switch ( $ this -> ofWeek ) { case Carbon :: MONDAY : $ name = 'Monday' ; break ; case Carbon :: TUESDAY : $ name = 'Tuesday' ; break ; case Carbon :: WEDNESDAY : $ name = 'Wednesday' ; break ; case Carbon :: THURSDAY : $ name = 'Thursday' ; break ; case Carbon :: FRIDAY : $ name = 'Friday' ; break ; case Carbon :: SATURDAY : $ name = 'Saturday' ; break ; case Carbon :: SUNDAY : $ name = 'Sunday' ; break ; default : throw new LogicException ; } return $ name ; }
Gets the day's name.

@return string
Gets the day s name .