ExclusionStrategy::skipProperty()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 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 1056
    public function skipClass(ClassMetadataInterface $class, ContextInterface $context)
28
    {
29 1056
        return false;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35 976
    public function skipProperty(PropertyMetadataInterface $property, ContextInterface $context)
36
    {
37 976
        return false;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43 192
    public function skipType(TypeMetadataInterface $type, ContextInterface $context)
44
    {
45 192
        return false;
46
    }
47
}
48