Prado\I18N\core\DateFormat::getDayInWeek PHP 메소드

getDayInWeek() 보호된 메소드

"E" will return integer 0 (for Sunday) through 6 (for Saturday). "EE" will return the narrow day of the week, e.g. "M" "EEE" will return the abrreviated day of the week, e.g. "Mon" "EEEE" will return the day of the week, e.g. "Monday"
protected getDayInWeek ( $date, $pattern = 'EEEE' ) : string
리턴 string day of the week.
    protected function getDayInWeek($date, $pattern = 'EEEE')
    {
        $day = $date['wday'];
        switch ($pattern) {
            case 'E':
                return $day;
                break;
            case 'EE':
                return $this->formatInfo->NarrowDayNames[$day];
            case 'EEE':
                return $this->formatInfo->AbbreviatedDayNames[$day];
                break;
            case 'EEEE':
                return $this->formatInfo->DayNames[$day];
                break;
            default:
                throw new Exception('The pattern for day of the week ' . 'is "E", "EE", "EEE", or "EEEE".');
        }
    }