public function validate ($object = null)
	{
		if (!isset ($this->context))
		{
			throw new InvalidParameter ("You must set a context before validating or filtering.");
		}

		$result = $this->reduce ($this->context, $object);

		if ($result)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
public function validate ($object = null)
	{
		if (!isset ($this->context))
		{
			throw new InvalidParameter ("You must set a context before validating or filtering.");
		}

		$result = $this->reduce ($this->context, $object);

		if ($result)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
public function validate ( $ object = null ) { if ( ! isset ( $ this -> context ) ) { throw new InvalidParameter ( "You must set a context before validating or filtering." ) ; } $ result = $ this -> reduce ( $ this -> context , $ object ) ; if ( $ result ) { return true ; } else { return false ; } }
Validate a single object
@param $object
@throws \Neuron\Exceptions\InvalidParameter
@return bool
Validate a single object