public function apply( $rules ) {
		$satisfied = true;

		if ( empty( $rules ) || ! is_array( $rules ) ) {
			return $satisfied;
		}

		// If no any valid rules, consider as satisfied.
		if ( ! is_null( $rule = $this->get_rule( $rules ) ) ) {
			return $rule->apply( $this->data );
		}

		return $satisfied;
	}
public function apply( $rules ) {
		$satisfied = true;

		if ( empty( $rules ) || ! is_array( $rules ) ) {
			return $satisfied;
		}

		// If no any valid rules, consider as satisfied.
		if ( ! is_null( $rule = $this->get_rule( $rules ) ) ) {
			return $rule->apply( $this->data );
		}

		return $satisfied;
	}
public function apply ( $ rules ) { $ satisfied = true ; if ( empty ( $ rules ) || ! is_array ( $ rules ) ) { return $ satisfied ; } // If no any valid rules, consider as satisfied. if ( ! is_null ( $ rule = $ this -> get_rule ( $ rules ) ) ) { return $ rule -> apply ( $ this -> data ) ; } return $ satisfied ; }
Check rules is satisfied the conditions.

@param  array $rules
@return bool
Check rules is satisfied the conditions .