Passed
Push — feature/eco-574/eco-2266-check... ( efd21d )
by Aleksey
08:13
created

AfterpayToUtilTextBridge::separatorToCamelCase()   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 3
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\Zed\Afterpay\Dependency\Service;
9
10
class AfterpayToUtilTextBridge implements AfterpayToUtilTextInterface
11
{
12
    /**
13
     * @var \Spryker\Service\UtilText\UtilTextServiceInterface
14
     */
15
    protected $utilTextService;
16
17
    /**
18
     * @param \Spryker\Service\UtilText\UtilTextServiceInterface $utilTextService
19
     */
20
    public function __construct($utilTextService)
21
    {
22
        $this->utilTextService = $utilTextService;
23
    }
24
25
    /**
26
     * @param string $string
27
     * @param string $separator
28
     * @param bool $upperCaseFirst
29
     *
30
     * @return string
31
     */
32
    public function separatorToCamelCase($string, $separator = '-', $upperCaseFirst = false)
33
    {
34
        return $this->utilTextService->separatorToCamelCase($string, $separator, $upperCaseFirst);
35
    }
36
37
    /**
38
     * @param string $string
39
     * @param string $separator
40
     *
41
     * @return string
42
     */
43
    public function camelCaseToSeparator($string, $separator = '-')
44
    {
45
        return $this->utilTextService->camelCaseToSeparator($string, $separator);
46
    }
47
}
48