Completed
Push — development ( daed94...13a157 )
by Thomas
18s
created

ImportContext::getFormData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Oc\FieldNotes\Import\Context;
4
5
use Oc\FieldNotes\Form\UploadFormData;
6
use Oc\FieldNotes\Struct\FieldNote;
7
8
class ImportContext
9
{
10
    /**
11
     * @var array
12
     */
13
    private $fieldNotes;
14
15
    /**
16
     * @var UploadFormData
0 ignored issues
show
introduced by
UploadFormData => \Oc\FieldNotes\Form\UploadFormData
Loading history...
17
     */
18
    private $formData;
19
20
    /**
21
     * @param FieldNote[] $fieldNotes
0 ignored issues
show
introduced by
FieldNote[] => \Oc\FieldNotes\Struct\FieldNote[]
Loading history...
22
     * @param UploadFormData $formData
0 ignored issues
show
introduced by
UploadFormData => \Oc\FieldNotes\Form\UploadFormData
Loading history...
23
     */
24
    public function __construct(array $fieldNotes, UploadFormData $formData)
25
    {
26
        $this->fieldNotes = $fieldNotes;
27
        $this->formData = $formData;
28
    }
29
30
    /**
31
     * Returns field notes to be imported.
32
     *
33
     * @return array
34
     */
35
    public function getFieldNotes()
36
    {
37
        return $this->fieldNotes;
38
    }
39
40
    /**
41
     * Returns the UploadFormData.
42
     *
43
     * @return UploadFormData
0 ignored issues
show
introduced by
UploadFormData => \Oc\FieldNotes\Form\UploadFormData
Loading history...
44
     */
45
    public function getFormData()
46
    {
47
        return $this->formData;
48
    }
49
}
50