protected function validateInteger( $attribute, $value )
	{
		if ( !$this->hasAttribute( $attribute ) )
		{
			return true;
		}

		return is_null( $value ) || filter_var( $value, FILTER_VALIDATE_INT ) !== false;
	}
protected function validateInteger( $attribute, $value )
	{
		if ( !$this->hasAttribute( $attribute ) )
		{
			return true;
		}

		return is_null( $value ) || filter_var( $value, FILTER_VALIDATE_INT ) !== false;
	}
protected function validateInteger ( $ attribute , $ value ) { if ( ! $ this -> hasAttribute ( $ attribute ) ) { return true ; } return is_null ( $ value ) || filter_var ( $ value , FILTER_VALIDATE_INT ) !== false ; }
Validate that an attribute is an integer.

@param  string $attribute
@param  mixed $value
@return bool
Validate that an attribute is an integer .