src/Carbon/Traits/Rounding.php
public function ceilWeek($weekStartsAt = null)
    {
        if ($this->isMutable()) {
            $startOfWeek = $this->copy()->startOfWeek($weekStartsAt);

            return $startOfWeek != $this ?
                $this->startOfWeek($weekStartsAt)->addWeek() :
                $this;
        }

        $startOfWeek = $this->startOfWeek($weekStartsAt);

        return $startOfWeek != $this ?
            $startOfWeek->addWeek() :
            $this->copy();
    }
public function ceilWeek($weekStartsAt = null)
    {
        if ($this->isMutable()) {
            $startOfWeek = $this->copy()->startOfWeek($weekStartsAt);

            return $startOfWeek != $this ?
                $this->startOfWeek($weekStartsAt)->addWeek() :
                $this;
        }

        $startOfWeek = $this->startOfWeek($weekStartsAt);

        return $startOfWeek != $this ?
            $startOfWeek->addWeek() :
            $this->copy();
    }
public function ceilWeek ( $ weekStartsAt = null ) { if ( $ this -> isMutable ( ) ) { $ startOfWeek = $ this -> copy ( ) -> startOfWeek ( $ weekStartsAt ) ; return $ startOfWeek != $ this ? $ this -> startOfWeek ( $ weekStartsAt ) -> addWeek ( ) : $ this ; } $ startOfWeek = $ this -> startOfWeek ( $ weekStartsAt ) ; return $ startOfWeek != $ this ? $ startOfWeek -> addWeek ( ) : $ this -> copy ( ) ; }
Ceil the current instance week.

@param int $weekStartsAt optional start allow you to specify the day of week to use to start the week

@return CarbonInterface
Ceil the current instance week .