Completed
Push — master ( cddd98...c8ab6f )
by Oleksandr
14s queued 10s
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
     * {@inheritDoc}
19
     *
20
     * @api
21
     *
22
     * @return string
23
     */
24
    public function generateToken(): string
25
    {
26
        return $this->getFactory()
27
            ->createTokenGenerator()
28
            ->generateToken();
29
    }
30
}
31