Completed
Pull Request — master (#16)
by Daryl
02:34
created

Map::__construct()   A

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 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
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
 * @mixin    Map_Model
13
 * @mixin    Map_View
14
 */
15
class Map extends Controller_Base {
16
17
	/**
18
	 * @var Map_Model
19
	 */
20
	protected $_model;
21
22
	/**
23
	 * @var Map_View
24
	 */
25
	protected $_view;
26
27
	/**
28
	 * Map constructor.
29
	 *
30
	 * @param array $args
31
	 */
32 1
	function __construct( $args = array() ) {
33
34 1
		$this->_model = $model = new Map_Model( $args );
35 1
		$this->_view  = new Map_View( $model );
36
37 1
	}
38
39
}
40