Completed
Pull Request — master (#22)
by Daryl
01:32
created

Map   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Clubdeuce\WPLib\Components\GoogleMaps;
4
5
/**
6
 * Class Map
7
 * @package Clubdeuce\WPLib\Components\GoogleMaps
8
 *
9
 * @property Map_Model $model
10
 * @property Map_View  $view
11
 * @mixin    Map_Model
12
 * @mixin    Map_View
13
 * @method   void     add_marker( $marker )
14
 * @method   void     add_markers( $markers )
15
 * @method   array    center()
16
 * @method   string   height()
17
 * @method   string   html_id()
18
 * @method   Marker[] markers()
19
 * @method   string   width()
20
 * @method   int      zoom()
21
 * @method   array    make_args()
22
 */
23
class Map extends \WPLib_Item_Base {
24
25
	/**
26
	 * Map_Model constructor.
27
	 *
28
	 * @param array $args
29
	 */
30 4
	function __construct( $args = array() ) {
31
32 4
		$args = wp_parse_args( $args, array(
33 4
			'model' => new Map_Model( array( 'map' => new \Clubdeuce\WPGoogleMaps\Map( $args ) ) ),
34
		) );
35
36 4
		parent::__construct( $args );
37
38 4
	}
39
40
}