Completed
Push — master ( a8cf27...ed6ab4 )
by Eric
02:36
created

ExclusionStrategy::create()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
rs 9.4285
cc 3
eloc 7
nc 4
nop 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ExclusionStrategy::skipProperty() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Serializer package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\Serializer\Exclusion;
13
14
use Ivory\Serializer\Context\ContextInterface;
15
use Ivory\Serializer\Mapping\ClassMetadataInterface;
16
use Ivory\Serializer\Mapping\PropertyMetadataInterface;
17
use Ivory\Serializer\Mapping\TypeMetadataInterface;
18
19
/**
20
 * @author GeLo <[email protected]>
21
 */
22
class ExclusionStrategy implements ExclusionStrategyInterface
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function skipClass(ClassMetadataInterface $class, ContextInterface $context)
28
    {
29
        return false;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function skipProperty(PropertyMetadataInterface $property, ContextInterface $context)
36
    {
37
        return false;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function skipType(TypeMetadataInterface $type, ContextInterface $context)
44
    {
45
        return false;
46
    }
47
}
48