Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Translator.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 /**
6 * This file is part of the Carbon package.
7 *
8 * (c) Brian Nesbitt <[email protected]>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13
14 namespace Carbon;
15
16 use ReflectionMethod;
17 use Symfony\Component\Translation;
18 use Symfony\Contracts\Translation\TranslatorInterface;
19
20 $transMethod = new ReflectionMethod(
21 class_exists(TranslatorInterface::class)
22 ? TranslatorInterface::class
23 : Translation\Translator::class,
24 'trans',
25 );
26
27 require $transMethod->hasReturnType()
28 ? __DIR__.'/../../lazy/Carbon/TranslatorStrongType.php'
29 : __DIR__.'/../../lazy/Carbon/TranslatorWeakType.php';
30
31 class Translator extends LazyTranslator
32 {
33 // Proxy dynamically loaded LazyTranslator in a static way
34 }