public function delayInSession($delay): self
    {
        if (is_int($delay)) {
            $delay = Carbon::now()->addMinutes($delay);
        }

        $this->sessionDelay = $delay;

        return $this;
    }
public function delayInSession($delay): self
    {
        if (is_int($delay)) {
            $delay = Carbon::now()->addMinutes($delay);
        }

        $this->sessionDelay = $delay;

        return $this;
    }
public function delayInSession ( $ delay ) : self { if ( is_int ( $ delay ) ) { $ delay = Carbon :: now ( ) -> addMinutes ( $ delay ) ; } $ this -> sessionDelay = $ delay ; return $ this ; }
Set the delay in the session.

@param  \DateTime|int  $delay
@return $this
Set the delay in the session .