public function make(string $name = null, string $value = null): \BearFramework\App\Response\Cookie
    {
        if ($this->newCookieCache === null) {
            $this->newCookieCache = new \BearFramework\App\Response\Cookie();
        }
        $object = clone($this->newCookieCache);
        if ($name !== null) {
            $object->name = $name;
        }
        if ($value !== null) {
            $object->value = $value;
        }
        return $object;
    }
public function make(string $name = null, string $value = null): \BearFramework\App\Response\Cookie
    {
        if ($this->newCookieCache === null) {
            $this->newCookieCache = new \BearFramework\App\Response\Cookie();
        }
        $object = clone($this->newCookieCache);
        if ($name !== null) {
            $object->name = $name;
        }
        if ($value !== null) {
            $object->value = $value;
        }
        return $object;
    }
public function make ( string $ name = null , string $ value = null ) : \ BearFramework \ App \ Response \ Cookie { if ( $ this -> newCookieCache === null ) { $ this -> newCookieCache = new \ BearFramework \ App \ Response \ Cookie ( ) ; } $ object = clone ( $ this -> newCookieCache ) ; if ( $ name !== null ) { $ object -> name = $ name ; } if ( $ value !== null ) { $ object -> value = $ value ; } return $ object ; }
Constructs a new cookie and returns it.

@param string|null $name The name of the cookie.
@param string|null $value The value of the cookie.
@return \BearFramework\App\Response\Cookie Returns a new cookie.
Constructs a new cookie and returns it .