blob: 94dbdc30ae4a325d99d053b7aa34e134c8aa4b82 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<?php
2
3/**
4 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <brian@nesbot.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Carbon;
13
14if (!class_exists(LazyTranslator::class, false)) {
15 class LazyTranslator extends AbstractTranslator
16 {
17 /**
18 * Returns the translation.
19 *
20 * @param string|null $id
21 * @param array $parameters
22 * @param string|null $domain
23 * @param string|null $locale
24 *
25 * @return string
26 */
27 public function trans($id, array $parameters = [], $domain = null, $locale = null)
28 {
29 return $this->translate($id, $parameters, $domain, $locale);
30 }
31 }
32}