Ignore   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 4.02.19
6
 * Time: 15:54
7
 */
8
9
namespace Sf4\Populator\Annotation;
10
11
12
use Sf4\Populator\HydratorContextFactoryInterface;
13
use Sf4\Populator\PopulatorAnnotation;
14
use Sf4\Populator\PropertyMetadata;
15
16
/**
17
 * Class IgnorePopulator
18
 * @package Sf4\Populator\Annotation
19
 *
20
 * @Annotation
21
 */
22
class Ignore implements PopulatorAnnotation
23
{
24
25
    /**
26
     * Proccesses the metadata
27
     *
28
     * @param  PropertyMetadata $metadata Metadata
29
     * @param  HydratorContextFactoryInterface $factory Factory fallback if needed
30
     */
31
    public function process(PropertyMetadata $metadata, HydratorContextFactoryInterface $factory)
32
    {
33
        $metadata->setIgnored(true);
34
    }
35
}
36