Passed
Pull Request — master (#9)
by Volodymyr
04:30
created

BraintreeService::generateToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SprykerEco\Service\Braintree;
4
5
use Spryker\Service\Kernel\AbstractService;
6
7
/**
8
 * @method \SprykerEco\Service\Braintree\BraintreeServiceFactory getFactory()
9
 */
10
class BraintreeService extends AbstractService implements BraintreeServiceInterface
11
{
12
    /**
13
     * @return string
14
     */
15
    public function generateToken(): string
16
    {
17
        return $this->getFactory()
18
            ->createTokenGenerator()
19
            ->generateToken();
20
    }
21
}