LocaleOptions   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 56
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setLocalizeErrors() 0 4 1
A getLanguage() 0 3 1
A __construct() 0 4 1
A getLocalizeErrors() 0 3 1
A setLanguage() 0 4 1
1
<?php
2
3
namespace SForce\Wsdl;
4
5
class LocaleOptions
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $language = null;
11
12
    /**
13
     * @var boolean
14
     */
15
    protected $localizeErrors = null;
16
17
    /**
18
     * @param string $language
19
     * @param boolean $localizeErrors
20
     */
21
    public function __construct($language = null, $localizeErrors = null)
22
    {
23
        $this->language = $language;
24
        $this->localizeErrors = $localizeErrors;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getLanguage()
31
    {
32
        return $this->language;
33
    }
34
35
    /**
36
     * @param string $language
37
     * @return \SForce\Wsdl\LocaleOptions
38
     */
39
    public function setLanguage($language)
40
    {
41
        $this->language = $language;
42
        return $this;
43
    }
44
45
    /**
46
     * @return boolean
47
     */
48
    public function getLocalizeErrors()
49
    {
50
        return $this->localizeErrors;
51
    }
52
53
    /**
54
     * @param boolean $localizeErrors
55
     * @return \SForce\Wsdl\LocaleOptions
56
     */
57
    public function setLocalizeErrors($localizeErrors)
58
    {
59
        $this->localizeErrors = $localizeErrors;
60
        return $this;
61
    }
62
}
63