public function get_rule( array $rules ) {
		$logical = static::LOGICAL_AND;

		if ( static::is_group_rules( $rules ) ) {
			list( $logical, $rules ) = $this->parse_group_logical( $rules );
		}

		return $this->create_rule( $rules, $logical );
	}
public function get_rule( array $rules ) {
		$logical = static::LOGICAL_AND;

		if ( static::is_group_rules( $rules ) ) {
			list( $logical, $rules ) = $this->parse_group_logical( $rules );
		}

		return $this->create_rule( $rules, $logical );
	}
public function get_rule ( array $ rules ) { $ logical = static :: LOGICAL_AND ; if ( static :: is_group_rules ( $ rules ) ) { list ( $ logical , $ rules ) = $ this -> parse_group_logical ( $ rules ) ; } return $ this -> create_rule ( $ rules , $ logical ) ; }
Gets the rule.

@param  array $rules
@return \WPLibs\Rules\Rule|null
Gets the rule .