Completed
Pull Request — master (#12)
by
unknown
03:14
created

Config   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCurlVerbose() 0 4 1
A setCurlVerbose() 0 6 1
1
<?php
2
3
namespace Escopecz\MauticFormSubmit\Mautic;
4
5
/**
6
 * Mautic Configuration
7
 */
8
class Config
9
{
10
    /**
11
     * Curl verbose logging option
12
     *
13
     * @var int
14
     */
15
    protected $curlVerbose; 
16
    
17
    /**
18
     * Constructor
19
     *
20
     * @param int $curlVerbose
21
     */
22
    public function __construct(int $curlVerbose)
23
    {
24
        $this->curlVerbose = $curlVerbose;
25
    }
26
27
    /**
28
     * Returns Curl verbose logging option
29
     *
30
     * @return int
31
     */
32
    public function getCurlVerbose()
33
    {
34
        return $this->curlVerbose;
35
    }
36
    
37
    /**
38
     * Set Curl verbose logging option
39
     *
40
     * @param int $curlVerbose
41
     *
42
     * @return Config
43
     */
44
    public function setCurlVerbose($curlVerbose)
45
    {
46
        $this->curlVerbose = $curlVerbose;
47
48
        return $this;
49
    }
50
}
51