add_input_exception( $message, $input_id ); } } /** * Set exception message for an input * * @param string $message Message. * @param string $input_id Input Id. */ public function add_input_exception( $message, $input_id ) { $this->input_exceptions[ $input_id ] = $message; } /** * Set exception message for an address input * * @param string $message Message. * @param string $input_id Input Id. * @param string $sub_input Input. */ public function add_sub_input_exception( $message, $input_id, $sub_input ) { $this->input_exceptions[ $input_id ][ $sub_input ] = $message; } /** * Get all input exceptions * * @return array */ public function get_input_exceptions() { return $this->input_exceptions; } /** * Check if there is input_exceptions_is_available * * @return bool */ public function input_exceptions_is_available() { return count( $this->input_exceptions ) > 0; } }