Passed
Pull Request — master (#9)
by Volodymyr
05:48
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
/**
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