/** * 2016-07-14 * @param array(string|Phrase) ...$args * @return void */ function df_checkout_error(...$args) { df_checkout_message(df_format($args), false); }
/** * @param mixed ...$args * @return void */ public function commentPrepend(...$args) { array_unshift($this->_comments, df_format($args)); }
/** * 2016-07-10 * @param Exception|string $message * @return void * @throws Exception */ protected function throwException($message) { /** @var Exception $exception */ if ($message instanceof Exception) { $exception = $message; } else { /** @var string $exceptionClass */ $exceptionClass = $this->exceptionC(); /** @var Exception $exception */ $exception = new $exceptionClass(df_format(func_get_args()), $this); } df_error($exception); }
/** * 2016-07-31 * @param string|string[]|mixed|Exception|Phrase|null $message [optional] * @return DFE */ function df_error_create($message = null) { return $message instanceof Exception ? df_ewrap($message) : new DFE($message instanceof Phrase ? $message : __(is_array($message) ? implode("\n\n", $message) : df_format(func_get_args()))); }