Completed
Push — master ( d43eec...8b004e )
by Viacheslav
05:13
created

Context::getDataPreProcessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Swaggest\JsonSchema;
4
5
class Context extends MagicMap
6
{
7
    public $import = true;
8
    /** @var DataPreProcessor */
9
    public $dataPreProcessor;
10
    /** @var RefResolver */
11
    public $refResolver;
12
13
    /** @var RemoteRefProvider */
14
    public $remoteRefProvider;
15
16
    /** @var string */
17
    public $propagateObjectItemClass;
18
19
    /** @var \SplObjectStorage */
20
    public $circularReferences;
21
22
    /** @var bool */
23
    public $skipValidation = false;
24
25
    /** @var string[] map of from -> to class names */
26
    public $objectItemClassMapping;
27
28
    /**
29
     * @param boolean $skipValidation
30
     * @return Context
31
     */
32
    public function setSkipValidation($skipValidation = true)
33
    {
34
        $this->skipValidation = $skipValidation;
35
        return $this;
36
    }
37
38
39
    /**
40
     * ProcessingOptions constructor.
41
     * @param RemoteRefProvider $remoteRefProvider
42
     */
43
    public function __construct(RemoteRefProvider $remoteRefProvider = null)
44
    {
45
        $this->remoteRefProvider = $remoteRefProvider;
46
    }
47
48
    /**
49
     * @return DataPreProcessor
50
     */
51
    public function getDataPreProcessor()
52
    {
53
        return $this->dataPreProcessor;
54
    }
55
56
    /**
57
     * @param DataPreProcessor $dataPreProcessor
58
     * @return Context
59
     */
60
    public function setDataPreProcessor($dataPreProcessor)
61
    {
62
        $this->dataPreProcessor = $dataPreProcessor;
63
        return $this;
64
    }
65
66
    /**
67
     * @return RemoteRefProvider
68
     */
69
    public function getRemoteRefProvider()
70
    {
71
        return $this->remoteRefProvider;
72
    }
73
74
    /**
75
     * @param RemoteRefProvider $remoteRefProvider
76
     * @return Context
77
     */
78
    public function setRemoteRefProvider($remoteRefProvider)
79
    {
80
        $this->remoteRefProvider = $remoteRefProvider;
81
        return $this;
82
    }
83
84
85
}