Test Failed
Push — main ( a95cda...41a204 )
by Pieter
03:08
created

ValueObjectPlugin::getNormalizers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Apie\ValueObjectPlugin;
4
5
6
use Apie\Core\PluginInterfaces\NormalizerProviderInterface;
7
use Apie\Core\PluginInterfaces\SchemaProviderInterface;
8
use Apie\ValueObjectPlugin\Normalizers\ValueObjectNormalizer;
9
use Apie\ValueObjects\ValueObjectInterface;
10
use W2w\Lib\Apie\Plugins\ValueObject\Schema\ValueObjectSchemaBuilder;
0 ignored issues
show
Bug introduced by
The type W2w\Lib\Apie\Plugins\Val...alueObjectSchemaBuilder 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
12
class ValueObjectPlugin implements NormalizerProviderInterface, SchemaProviderInterface
13
{
14
    /**
15
     * {@inheritDoc}
16
     */
17
    public function getNormalizers(): array
18
    {
19
        return [
20
            new ValueObjectNormalizer()
21
        ];
22
    }
23
24
    /**
25
     * {@inheritDoc}
26
     */
27
    public function getDefinedStaticData(): array
28
    {
29
        return [
30
        ];
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     */
36
    public function getDynamicSchemaLogic(): array
37
    {
38
        return [
39
            ValueObjectInterface::class => new ValueObjectSchemaBuilder()
40
        ];
41
    }
42
}
43