Completed
Push — feature/paypal-express ( 45c1ed...8563e1 )
by Oleksandr
22:44 queued 22:43
created

BraintreeService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

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
     * {@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