Passed
Push — feature/paypal-express ( ec9040...c08f5f )
by Volodymyr
06:46
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
 * 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