private function validateParameters( $component, $version, $operator ) {
		if ( empty( $component ) ) {
			throw new Whip_EmptyProperty( 'Component' );
		}

		if ( ! is_string( $component ) ) {
			throw new Whip_InvalidType( 'Component', $component, 'string' );
		}

		if ( empty( $version ) ) {
			throw new Whip_EmptyProperty( 'Version' );
		}

		if ( ! is_string( $version ) ) {
			throw new Whip_InvalidType( 'Version', $version, 'string' );
		}

		if ( empty( $operator ) ) {
			throw new Whip_EmptyProperty( 'Operator' );
		}

		if ( ! is_string( $operator ) ) {
			throw new Whip_InvalidType( 'Operator', $operator, 'string' );
		}

		$validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' );
		if ( ! in_array( $operator, $validOperators, true ) ) {
			throw new Whip_InvalidOperatorType( $operator, $validOperators );
		}
	}
private function validateParameters( $component, $version, $operator ) {
		if ( empty( $component ) ) {
			throw new Whip_EmptyProperty( 'Component' );
		}

		if ( ! is_string( $component ) ) {
			throw new Whip_InvalidType( 'Component', $component, 'string' );
		}

		if ( empty( $version ) ) {
			throw new Whip_EmptyProperty( 'Version' );
		}

		if ( ! is_string( $version ) ) {
			throw new Whip_InvalidType( 'Version', $version, 'string' );
		}

		if ( empty( $operator ) ) {
			throw new Whip_EmptyProperty( 'Operator' );
		}

		if ( ! is_string( $operator ) ) {
			throw new Whip_InvalidType( 'Operator', $operator, 'string' );
		}

		$validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' );
		if ( ! in_array( $operator, $validOperators, true ) ) {
			throw new Whip_InvalidOperatorType( $operator, $validOperators );
		}
	}
private function validateParameters ( $ component , $ version , $ operator ) { if ( empty ( $ component ) ) { throw new Whip_EmptyProperty ( 'Component' ) ; } if ( ! is_string ( $ component ) ) { throw new Whip_InvalidType ( 'Component' , $ component , 'string' ) ; } if ( empty ( $ version ) ) { throw new Whip_EmptyProperty ( 'Version' ) ; } if ( ! is_string ( $ version ) ) { throw new Whip_InvalidType ( 'Version' , $ version , 'string' ) ; } if ( empty ( $ operator ) ) { throw new Whip_EmptyProperty ( 'Operator' ) ; } if ( ! is_string ( $ operator ) ) { throw new Whip_InvalidType ( 'Operator' , $ operator , 'string' ) ; } $ validOperators = array ( '=' , '==' , '===' , '<' , '>' , '<=' , '>=' ) ; if ( ! in_array ( $ operator , $ validOperators , true ) ) { throw new Whip_InvalidOperatorType ( $ operator , $ validOperators ) ; } }
Validates the parameters passed to the requirement.

@param string $component The component name.
@param string $version   The component version.
@param string $operator  The operator to use when comparing version.

@throws Whip_EmptyProperty       When any of the parameters is empty.
@throws Whip_InvalidOperatorType When the $operator parameter is invalid.
@throws Whip_InvalidType         When any of the parameters is not of the expected type.
Validates the parameters passed to the requirement .