src/Carbon/CarbonPeriod.php
public function setDates($start, $end)
    {
        $this->setStartDate($start);
        $this->setEndDate($end);

        return $this;
    }
public function setDates($start, $end)
    {
        $this->setStartDate($start);
        $this->setEndDate($end);

        return $this;
    }
public function setDates ( $ start , $ end ) { $ this -> setStartDate ( $ start ) ; $ this -> setEndDate ( $ end ) ; return $ this ; }
Set start and end date.

@param DateTime|DateTimeInterface|string      $start
@param DateTime|DateTimeInterface|string|null $end

@return $this
Set start and end date .