Core/Http/Cookie/CookieHandler.php
public function &createCookie(string $name)
    {
        $cookie = new Cookie();
        $cookie->setName($name);

        $this->addCookie($cookie);

        return $cookie;
    }
public function &createCookie(string $name)
    {
        $cookie = new Cookie();
        $cookie->setName($name);

        $this->addCookie($cookie);

        return $cookie;
    }
public function & createCookie ( string $ name ) { $ cookie = new Cookie ( ) ; $ cookie -> setName ( $ name ) ; $ this -> addCookie ( $ cookie ) ; return $ cookie ; }
Creates a cookie object, adds it to the cookies stack and returns an reference to this cookie

@param string $name
Name of cookie to create

@return \Core\Http\Cookie\CookieInterface
Creates a cookie object adds it to the cookies stack and returns an reference to this cookie