/** * ExpectedDefaultTemplatesNotFound constructor. * * @param string $webspace * @param string[] $expected * @param string[] $found */ public function __construct($webspace, $expected, $found) { parent::__construct(sprintf('One of expected types "[%s]" not found (found "[%s]") in webspace "%s".', implode(', ', $expected), implode(', ', $found), $webspace)); $this->webspace = $webspace; }
/** * InvalidAmountOfDefaultErrorTemplateException constructor. */ public function __construct($webspace) { parent::__construct(sprintf('One or no error template in webspace "%s" has to defined as default.', $webspace)); $this->webspace = $webspace; }
/** * InvalidErrorTemplateException constructor. * * @param string $template * @param int $webspace */ public function __construct($template, $webspace) { parent::__construct(sprintf('Default of "%s" in webspace "%s" cannot be false if no code is defined.', $template, $webspace)); $this->template = $template; $this->webspace = $webspace; }
/** * InvalidErrorTemplateException constructor. * * @param string $template * @param string $webspace */ public function __construct($template, $webspace) { parent::__construct(sprintf('Error template "%s" in webspace "%s" has to be defined as default or with a code.', $template, $webspace)); $this->template = $template; $this->webspace = $webspace; }