Completed
Push — master ( 83f325...e4c308 )
by Siim
15:08
created

Ignore::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
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