public function build(string $key, $value, \DateTimeInterface $expire = null): Cookie
    {
        return new Cookie($key, $this->encryptor->encrypt($value), $expire, '/', $this->domain, $this->secure);
    }
public function build(string $key, $value, \DateTimeInterface $expire = null): Cookie
    {
        return new Cookie($key, $this->encryptor->encrypt($value), $expire, '/', $this->domain, $this->secure);
    }
public function build ( string $ key , $ value , \ DateTimeInterface $ expire = null ) : Cookie { return new Cookie ( $ key , $ this -> encryptor -> encrypt ( $ value ) , $ expire , '/' , $ this -> domain , $ this -> secure ) ; }
Builds a new cookie

@param string             $key    The name of the cookie
@param mixed              $value  The value of the cookie
@param \DateTimeInterface $expire The expiration time of the cookie

@return \CodeCollab\Http\Cookie\Cookie The built cookie
Builds a new cookie