Private/Polyfony/HttpRequest.php
public function cookie($key, $value) :self {
		// if we have an array of data
		if(is_array($key)) {
			// for each of those
			foreach($key as $index => $value) {
				// set them
				$this->cookie($index, $value);
			}
		}
		else {
			// add to the list of files
			$this->cookie[$key] = '@'.$value;
		}
		// return self
		return $this;
	}
public function cookie($key, $value) :self {
		// if we have an array of data
		if(is_array($key)) {
			// for each of those
			foreach($key as $index => $value) {
				// set them
				$this->cookie($index, $value);
			}
		}
		else {
			// add to the list of files
			$this->cookie[$key] = '@'.$value;
		}
		// return self
		return $this;
	}
public function cookie ( $ key , $ value ) : self { // if we have an array of data if ( is_array ( $ key ) ) { // for each of those foreach ( $ key as $ index => $ value ) { // set them $ this -> cookie ( $ index , $ value ) ; } } else { // add to the list of files $ this -> cookie [ $ key ] = '@' . $ value ; } // return self return $ this ; }
set a cookie
set a cookie