MinuboEntityManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 11
rs 10

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
/**
14
 * @method \SprykerEco\Zed\Minubo\Persistence\MinuboPersistenceFactory getFactory()
15
 */
16
class MinuboEntityManager extends AbstractEntityManager implements MinuboEntityManagerInterface
17
{
18
    /**
19
     * @param \Generated\Shared\Transfer\SpyMinuboRunEntityTransfer $minuboRunEntityTransfer
20
     *
21
     * @return \Generated\Shared\Transfer\SpyMinuboRunEntityTransfer
22
     */
23
    public function createMinuboLastRun(
24
        SpyMinuboRunEntityTransfer $minuboRunEntityTransfer
25
    ): SpyMinuboRunEntityTransfer {
26
        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...
27
    }
28
}
29