CustomLinkComponent::getCustomLink()   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 CustomLinkComponent extends DescribeLayoutComponent
6
{
7
    /**
8
     * @var DescribeLayoutButton
9
     */
10
    protected $customLink = null;
11
12
    /**
13
     * @param int $displayLines
14
     * @param int $tabOrder
15
     * @param layoutComponentType $type
16
     * @param DescribeLayoutButton $customLink
17
     */
18
    public function __construct($displayLines = null, $tabOrder = null, $type = null, $customLink = null)
19
    {
20
        parent::__construct($displayLines, $tabOrder, $type);
21
        $this->customLink = $customLink;
22
    }
23
24
    /**
25
     * @return DescribeLayoutButton
26
     */
27
    public function getCustomLink()
28
    {
29
        return $this->customLink;
30
    }
31
32
    /**
33
     * @param DescribeLayoutButton $customLink
34
     * @return \SForce\Wsdl\CustomLinkComponent
35
     */
36
    public function setCustomLink($customLink)
37
    {
38
        $this->customLink = $customLink;
39
        return $this;
40
    }
41
}
42