Passed
Push — feature/paypal-express ( ec9040...c08f5f )
by Volodymyr
06:46
created

BraintreeToGlossaryClientBridge::translate()   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 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Yves\Braintree\Dependency\Client;
9
10
11
class BraintreeToGlossaryClientBridge implements BraintreeToGlossaryClientInterface
12
{
13
    /**
14
     * @var \Spryker\Client\Glossary\GlossaryClientInterface
15
     */
16
    protected $glossaryClient;
17
18
    /**
19
     * @param \Spryker\Client\Glossary\GlossaryClientInterface $glossaryClient
20
     */
21
    public function __construct($glossaryClient)
22
    {
23
        $this->glossaryClient = $glossaryClient;
24
    }
25
26
    /**
27
     * @param string $id
28
     * @param string $localeName
29
     * @param array $parameters
30
     *
31
     * @return string
32
     */
33
    public function translate($id, $localeName, array $parameters = [])
34
    {
35
        return $this->glossaryClient->translate($id, $localeName, $parameters);
36
    }
37
}
38