FieldComponent::getField()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class FieldComponent extends DescribeLayoutComponent
6
{
7
    /**
8
     * @var Field
9
     */
10
    protected $field = null;
11
12
    /**
13
     * @param int $displayLines
14
     * @param int $tabOrder
15
     * @param layoutComponentType $type
16
     * @param Field $field
17
     */
18
    public function __construct($displayLines = null, $tabOrder = null, $type = null, $field = null)
19
    {
20
        parent::__construct($displayLines, $tabOrder, $type);
21
        $this->field = $field;
22
    }
23
24
    /**
25
     * @return Field
26
     */
27
    public function getField()
28
    {
29
        return $this->field;
30
    }
31
32
    /**
33
     * @param Field $field
34
     * @return \SForce\Wsdl\FieldComponent
35
     */
36
    public function setField($field)
37
    {
38
        $this->field = $field;
39
        return $this;
40
    }
41
}
42