protected function validateAttribute (string $attribute=NULL) : bool
	{
		if (!property_exists($this, $attribute))
		{
			$this->error = "Attribute: ".ucfirst($attribute)." is not a class object.";
        	return FALSE;
		}
        $result = (is_array($this->$attribute)) ? !empty($this->$attribute) : Validate::hasValue($this->$attribute);
        if ($result) return TRUE;
		$this->error = "Set ".ucfirst($attribute)." to log your message.";
    	return FALSE;
	}
protected function validateAttribute (string $attribute=NULL) : bool
	{
		if (!property_exists($this, $attribute))
		{
			$this->error = "Attribute: ".ucfirst($attribute)." is not a class object.";
        	return FALSE;
		}
        $result = (is_array($this->$attribute)) ? !empty($this->$attribute) : Validate::hasValue($this->$attribute);
        if ($result) return TRUE;
		$this->error = "Set ".ucfirst($attribute)." to log your message.";
    	return FALSE;
	}
protected function validateAttribute ( string $ attribute = NULL ) : bool { if ( ! property_exists ( $ this , $ attribute ) ) { $ this -> error = "Attribute: " . ucfirst ( $ attribute ) . " is not a class object." ; return FALSE ; } $ result = ( is_array ( $ this -> $ attribute ) ) ? ! empty ( $ this -> $ attribute ) : Validate :: hasValue ( $ this -> $ attribute ) ; if ( $ result ) return TRUE ; $ this -> error = "Set " . ucfirst ( $ attribute ) . " to log your message." ; return FALSE ; }
Validates the specified attribute
@param string $attribute
@return bool
Validates the specified attribute