Completed
Pull Request — master (#2)
by Daryl
02:44
created

Map_Model   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A add_location() 0 5 1
1
<?php
2
3
namespace Clubdeuce\WPLib\Components\GoogleMaps;
4
5
/**
6
 * Class Map_Model
7
 * @package Clubdeuce\WPLib\Components\GoogleMaps
8
 * @method  string center()
9
 * @method  Location[]  locations()
10
 */
11
class Map_Model extends \WPLib_Model_Base {
12
13
    /**
14
     * @var string
15
     */
16
    protected $_center;
17
18
    /**
19
     * @var Location[]
20
     */
21
    protected $_locations = array();
22
23
    /**
24
     * @param Location $location
25
     */
26
    function add_location( Location $location ) {
27
28
        $this->_locations[] = $location;
29
30
    }
31
32
}
33