* @copyright Meritoo.pl */ class UnknownInstanceOfResultItem extends Exception { /** * Class constructor * * @param string $method Name of called method while talking to the LimeSurvey's API. One of the MethodType class * constants. */ public function __construct($method) { $template = 'Class name used to create instance of one item used by result the of \'%s\' LimeSurvey API\'s' . ' method is unknown. Proper class is not mapped in %s::%s() method. Did you forget about this?'; $message = sprintf($template, $method, ResultProcessor::class, 'getItemClassName'); parent::__construct($message); } }