original_string: 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;
  		}
  	}
code: 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;
  		}
  	}
code_tokens: 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 ; } }
docstring: Validate a single object
  @param $object
  @throws \Neuron\Exceptions\InvalidParameter
  @return bool
docstring_tokens: Validate a single object