src/mako/http/request/Cookies.php
public function getSigned(string $name, $default = null)
	{
		if(empty($this->signer))
		{
			throw new RuntimeException('A [ Signer ] instance is required to read signed cookies.');
		}

		if(isset($this->cookies[$name]) && ($cookie = $this->signer->validate($this->cookies[$name])) !== false)
		{
			return $cookie;
		}

		return $default;
	}
public function getSigned(string $name, $default = null)
	{
		if(empty($this->signer))
		{
			throw new RuntimeException('A [ Signer ] instance is required to read signed cookies.');
		}

		if(isset($this->cookies[$name]) && ($cookie = $this->signer->validate($this->cookies[$name])) !== false)
		{
			return $cookie;
		}

		return $default;
	}
public function getSigned ( string $ name , $ default = null ) { if ( empty ( $ this -> signer ) ) { throw new RuntimeException ( 'A [ Signer ] instance is required to read signed cookies.' ) ; } if ( isset ( $ this -> cookies [ $ name ] ) && ( $ cookie = $ this -> signer -> validate ( $ this -> cookies [ $ name ] ) ) !== false ) { return $ cookie ; } return $ default ; }
Gets a signed cookie value.

@param  string            $name    Cookie name
@param  mixed             $default Default value
@throws \RuntimeException
@return mixed
Gets a signed cookie value .