Passed
Pull Request — master (#9)
by Volodymyr
17:33 queued 09:33
created

BraintreeService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateToken() 0 5 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\Service\Braintree;
9
10
use Spryker\Service\Kernel\AbstractService;
11
12
/**
13
 * @method \SprykerEco\Service\Braintree\BraintreeServiceFactory getFactory()
14
 */
15
class BraintreeService extends AbstractService implements BraintreeServiceInterface
16
{
17
    /**
18
     * @return string
19
     */
20
    public function generateToken(): string
21
    {
22
        return $this->getFactory()
23
            ->createTokenGenerator()
24
            ->generateToken();
25
    }
26
}
27