public function setExpiresIn(DateInterval $interval)
    {
        $this->expires = new DateTime();
        $this->expires->add($interval);
        return $this;
    }
public function setExpiresIn(DateInterval $interval)
    {
        $this->expires = new DateTime();
        $this->expires->add($interval);
        return $this;
    }
public function setExpiresIn ( DateInterval $ interval ) { $ this -> expires = new DateTime ( ) ; $ this -> expires -> add ( $ interval ) ; return $ this ; }
Set expiry date by a DateInterval, relative to the current time
@param DateInterval $interval After how much time the cookie should expire
@return Wedeto\HTTP\Cookie Provides fluent interface
Set expiry date by a DateInterval relative to the current time