public static function createWithoutValidation(
        $name,
        $value = null,
        $maxAge = null,
        $domain = null,
        $path = null,
        $secure = false,
        $httpOnly = false,
        \DateTime $expires = null
    ) {
        $cookie = new self('name', null, null, $domain, $path, $secure, $httpOnly, $expires);
        $cookie->name = $name;
        $cookie->value = $value;
        $cookie->maxAge = $maxAge;

        return $cookie;
    }
public static function createWithoutValidation(
        $name,
        $value = null,
        $maxAge = null,
        $domain = null,
        $path = null,
        $secure = false,
        $httpOnly = false,
        \DateTime $expires = null
    ) {
        $cookie = new self('name', null, null, $domain, $path, $secure, $httpOnly, $expires);
        $cookie->name = $name;
        $cookie->value = $value;
        $cookie->maxAge = $maxAge;

        return $cookie;
    }
public static function createWithoutValidation ( $ name , $ value = null , $ maxAge = null , $ domain = null , $ path = null , $ secure = false , $ httpOnly = false , \ DateTime $ expires = null ) { $ cookie = new self ( 'name' , null , null , $ domain , $ path , $ secure , $ httpOnly , $ expires ) ; $ cookie -> name = $ name ; $ cookie -> value = $ value ; $ cookie -> maxAge = $ maxAge ; return $ cookie ; }
Creates a new cookie without any attribute validation.

@param string         $name
@param string|null    $value
@param int            $maxAge
@param string|null    $domain
@param string|null    $path
@param bool           $secure
@param bool           $httpOnly
@param \DateTime|null $expires  Expires attribute is HTTP 1.0 only and should be avoided.
Creates a new cookie without any attribute validation .