Completed
Push — v4.0-dev ( 9a8f25...7f8453 )
by Oscar
02:11
created

BaseTranslator::initGettextFunctions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Gettext;
4
5
abstract class BaseTranslator implements TranslatorInterface
6
{
7
    /** @var TranslatorInterface */
8
    public static $current;
9
10
    /**
11
     * @see TranslatorInterface
12
     */
13
    public function register()
14
    {
15
        self::$current = $this;
16
17
        include_once __DIR__.'/translator_functions.php';
18
    }
19
}
20