Completed
Push — master ( 934849...10255c )
by Daryl
01:34
created

Info_Window_Model   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 59
ccs 8
cts 8
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A content() 0 5 1
A pixel_offset() 0 5 1
A position() 0 5 1
A max_width() 0 5 1
1
<?php
2
3
namespace Clubdeuce\WPLib\Components\GoogleMaps;
4
5
/**
6
 * Class Info_Window_Model
7
 * @package Clubdeuce\WPLib\Components\GoogleMaps
8
 */
9
class Info_Window_Model extends \WPLib_Model_Base {
10
11
    /**
12
     * @var string
13
     */
14
    protected $_content = '';
15
16
    /**
17
     * @var int
18
     */
19
    protected $_pixel_offset = 0;
20
21
    /**
22
     * @var array
23
     */
24
    protected $_position;
25
26
    /**
27
     * @var int
28
     */
29
    protected $_max_width;
30
31
    /**
32
     * @return string
33
     */
34 1
    function content() {
35
36 1
        return $this->_content;
37
38
    }
39
40
    /**
41
     * @return int
42
     */
43 1
    function pixel_offset() {
44
45 1
        return $this->_pixel_offset;
46
47
    }
48
49
    /**
50
     * @return array
51
     */
52 1
    function position() {
53
54 1
        return $this->_position;
55
56
    }
57
58
    /**
59
     * @return int
60
     */
61 1
    function max_width() {
62
63 1
        return $this->_max_width;
64
65
    }
66
67
}
68