Completed
Push — master ( cddd98...c8ab6f )
by Oleksandr
14s queued 10s
created

BraintreeToGlossaryClientBridge::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Yves\Braintree\Dependency\Client;
9
10
class BraintreeToGlossaryClientBridge implements BraintreeToGlossaryClientInterface
11
{
12
    /**
13
     * @var \Spryker\Client\Glossary\GlossaryClientInterface
14
     */
15
    protected $glossaryClient;
16
17
    /**
18
     * @param \Spryker\Client\Glossary\GlossaryClientInterface $glossaryClient
19
     */
20
    public function __construct($glossaryClient)
21
    {
22
        $this->glossaryClient = $glossaryClient;
23
    }
24
25
    /**
26
     * @param string $id
27
     * @param string $localeName
28
     * @param array $parameters
29
     *
30
     * @return string
31
     */
32
    public function translate($id, $localeName, array $parameters = [])
33
    {
34
        return $this->glossaryClient->translate($id, $localeName, $parameters);
35
    }
36
}
37