public function validate()
	{
		$validity = Rules::validate($this->attributes, $this->getRules());

		if ($validity === true)
		{
			return true;
		}

		$this->setErrors($validity);
		return false;
	}
public function validate()
	{
		$validity = Rules::validate($this->attributes, $this->getRules());

		if ($validity === true)
		{
			return true;
		}

		$this->setErrors($validity);
		return false;
	}
public function validate ( ) { $ validity = Rules :: validate ( $ this -> attributes , $ this -> getRules ( ) ) ; if ( $ validity === true ) { return true ; } $ this -> setErrors ( $ validity ) ; return false ; }
Validates the set data attributes against the model rules

@return  bool
@since   2.0.0
Validates the set data attributes against the model rules