Map::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Clubdeuce\WPGoogleMaps;
4
5
/**
6
 * Class Map
7
 * @package Clubdeuce\WPGoogleMaps
8
 *
9
 * @property Map_Model $_model
10
 * @property Map_View  $_view
11
 *
12
 * @method array    center()
13
 * @method Marker[] markers()
14
 * @method array    styles()
15
 * @method void     the_map()
16
 * @method void     the_map_params()
17
 * @method int      zoom()
18
 *
19
 * @mixin    Map_Model
20
 * @mixin    Map_View
21
 */
22
class Map extends Controller_Base {
23
24
	/**
25
	 * @var Map_Model
26
	 */
27
	protected $_model;
28
29
	/**
30
	 * @var Map_View
31
	 */
32
	protected $_view;
33
34
	/**
35
	 * Map constructor.
36
	 *
37
	 * @param array $args
38
	 */
39 2
	function __construct( $args = array() ) {
40
41 2
		$this->_model = $model = new Map_Model( $args );
42 2
		$this->_view  = new Map_View( $model );
43
44 2
	}
45
46
}
47