CustomLinkComponent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 35
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomLink() 0 3 1
A __construct() 0 4 1
A setCustomLink() 0 4 1
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