public function firstOfMonth($dayOfWeek = null) { $day = $dayOfWeek === null ? 'day' : static::$days[$dayOfWeek]; return $this->modify("first {$day} of this month, midnight"); }