/** * Constructor. * * @param string $name The mail template name * @param string $type The mail type defined in MailTypes::TYPE_* */ public function __construct($name, $type) { parent::__construct(sprintf('The "%s" mail template does not exist with the "%s" type', $name, $type)); }
/** * Constructor. * * @param string $name The layout template name */ public function __construct($name) { parent::__construct(sprintf('The "%s" layout template does not exist', $name)); }