Passed
Pull Request — master (#41)
by Dmitrii
15:49
created

HelloSprykerFacade::createHelloSprykerEntity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Pyz\Zed\HelloSpryker\Business;
4
5
use Generated\Shared\Transfer\HelloSprykerTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\HelloSprykerTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Spryker\Zed\Kernel\Business\AbstractFacade;
7
8
/**
9
 * @method \Pyz\Zed\HelloSpryker\Business\HelloSprykerBusinessFactory getFactory()
10
 */
11
class HelloSprykerFacade extends AbstractFacade implements HelloSprykerFacadeInterface
12
{
13
    /**
14
     * {@inheritDoc}
15
     *
16
     * @param string $stringToReverse
17
     *
18
     * @return string
19
     * @api
20
     *
21
     */
22
    public function reverseString(HelloSprykerTransfer $helloSprykerTransfer): HelloSprykerTransfer
23
    {
24
        return $this->getFactory()
25
            ->createStringReverser()
26
            ->reverseString($helloSprykerTransfer);
27
    }
28
29
30
    /**
31
     * @inheritDoc
32
     *
33
     * @param \Generated\Shared\Transfer\HelloSprykerTransfer $helloSprykerTransfer
34
     *
35
     * @return \Generated\Shared\Transfer\HelloSprykerTransfer
36
     * @api
37
     *
38
     */
39
    public function createHelloSprykerEntity(HelloSprykerTransfer $helloSprykerTransfer): HelloSprykerTransfer
40
    {
41
        return $this->getFactory()->createStringWriter()->createHelloSprykerEntity($helloSprykerTransfer);
42
    }
43
44
    /**
45
     * @inheritDoc
46
     *
47
     * @param \Generated\Shared\Transfer\HelloSprykerTransfer $helloSprykerTransfer
48
     *
49
     * @return \Generated\Shared\Transfer\HelloSprykerTransfer
50
     * @api
51
     *
52
     */
53
    public function findHelloSpryker(HelloSprykerTransfer $helloSprykerTransfer): HelloSprykerTransfer
54
    {
55
        return $this->getFactory()->createStringReader()->findHelloSpryker($helloSprykerTransfer);
56
    }
57
}
58