src/Http/Cookie/Cookies.php
protected function _autobox($name, $value)
    {
        if (is_object($value)) {
            return $value;
        }
        $cookie = $this->_classes['cookie'];
        if (!is_array($value)) {
            $value = ['value' => $value];
        }
        $value['name'] = $name;
        return new $cookie($value);
    }
protected function _autobox($name, $value)
    {
        if (is_object($value)) {
            return $value;
        }
        $cookie = $this->_classes['cookie'];
        if (!is_array($value)) {
            $value = ['value' => $value];
        }
        $value['name'] = $name;
        return new $cookie($value);
    }
protected function _autobox ( $ name , $ value ) { if ( is_object ( $ value ) ) { return $ value ; } $ cookie = $ this -> _classes [ 'cookie' ] ; if ( ! is_array ( $ value ) ) { $ value = [ 'value' => $ value ] ; } $ value [ 'name' ] = $ name ; return new $ cookie ( $ value ) ; }
Autoboxes a cookie value.

@param  mixed  $value The cookie value.
@return object        The cookie instance.
Autoboxes a cookie value .