public function dayOfWeekLocal(string $locale = null) : int
    {
        $calendar = $this->createCalendar($locale);
        
        return $calendar->get(\IntlCalendar::FIELD_DOW_LOCAL);
    }
public function dayOfWeekLocal(string $locale = null) : int
    {
        $calendar = $this->createCalendar($locale);
        
        return $calendar->get(\IntlCalendar::FIELD_DOW_LOCAL);
    }
public function dayOfWeekLocal ( string $ locale = null ) : int { $ calendar = $ this -> createCalendar ( $ locale ) ; return $ calendar -> get ( \ IntlCalendar :: FIELD_DOW_LOCAL ) ; }
Returns the day of the week for the specified locale.

1 is the first day of the week, 2 the second etc. For example, for en_GB a Monday would be 1 but for en_US a
Monday would be 2 as the first day of the week is Sunday in that locale.

@param string|null $locale

@return int
Returns the day of the week for the specified locale .