Completed
Pull Request — master (#1)
by Grebenikov
14:36
created

MinuboEntityManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createMinuboLastRun() 0 4 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Minubo\Persistence;
9
10
use Generated\Shared\Transfer\SpyMinuboRunEntityTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfe...MinuboRunEntityTransfer 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...
11
use Spryker\Zed\Kernel\Persistence\AbstractEntityManager;
12
13
class MinuboEntityManager extends AbstractEntityManager implements MinuboEntityManagerInterface
14
{
15
    /**
16
     * @param \Generated\Shared\Transfer\SpyMinuboRunEntityTransfer $minuboRunEntityTransfer
17
     *
18
     * @return \Generated\Shared\Transfer\SpyMinuboRunEntityTransfer
19
     */
20
    public function createMinuboLastRun(
21
        SpyMinuboRunEntityTransfer $minuboRunEntityTransfer
22
    ): SpyMinuboRunEntityTransfer {
23
        return $this->save($minuboRunEntityTransfer);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->save($minuboRunEntityTransfer) returns the type Spryker\Shared\Kernel\Tr...EntityTransferInterface which is incompatible with the type-hinted return Generated\Shared\Transfe...MinuboRunEntityTransfer.
Loading history...
24
    }
25
}
26