File "FlipStringException.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/swedbank-pay-payments/vendor/adci/full-name-parser/src/Exception/FlipStringException.php
File size: 698 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

/**
 * @file
 * Class of NameParsingException.
 */

namespace ADCI\FullNameParser\Exception;

use \Throwable;

/**
 * Any exception for name parsing.
 *
 * @package FullNameParser
 */
class FlipStringException extends NameParsingException
{
    /**
     * Default message text.
     *
     * @var string
     */
    const MESSAGE = "Can't flip around multiple '%s' characters in name string '%s'.";

    /**
     * {@inheritdoc}
     */
    public function __construct($char = null, $full_name = null, $message = null, $code = 0, Throwable $previous = null)
    {
        $message = sprintf(self::MESSAGE, $char, $full_name);
        parent::__construct($message, $code, $previous);
    }
}