Completed
Push — master ( cddd98...c8ab6f )
by Oleksandr
14s queued 10s
created

BraintreeServiceFactory::createTokenGenerator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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\AbstractServiceFactory;
11
use SprykerEco\Service\Braintree\Model\TokenGenerator\TokenGenerator;
12
use SprykerEco\Service\Braintree\Model\TokenGenerator\TokenGeneratorInterface;
13
14
/**
15
 * @method \SprykerEco\Service\Braintree\BraintreeConfig getConfig()
16
 */
17
class BraintreeServiceFactory extends AbstractServiceFactory
18
{
19
    /**
20
     * @return \SprykerEco\Service\Braintree\Model\TokenGenerator\TokenGeneratorInterface
21
     */
22
    public function createTokenGenerator(): TokenGeneratorInterface
23
    {
24
        return new TokenGenerator($this->getConfig());
25
    }
26
}
27