Completed
Push — feature/paypal-express ( 45c1ed...8563e1 )
by Oleksandr
22:44 queued 22:43
created

BraintreeToGlossaryClientBridge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A translate() 0 3 1
A __construct() 0 3 1
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