Completed
Pull Request — master (#22)
by Daryl
02:30
created

Marker_Label   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 0
Metric Value
wmc 1
c 0
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 Marker_Label
7
 * @package Clubdeuce\WPLib\Components\GoogleMaps
8
 * @property Marker_Label_Model $model
9
 * @property Marker_Label_View  $view
10
 * @mixin    Marker_Label_Model
11
 * @mixin    Marker_Label_View
12
 * @method   string       color()
13
 * @method   string|array options()
14
 * @method   string       font_family()
15
 * @method   string       font_size()
16
 * @method   string       font_weight()
17
 * @method   string       text()
18
 * @method   string       json_object()
19
 */
20
class Marker_Label extends \WPLib_Item_Base {
21
22
	/**
23
	 * Marker_Label constructor.
24
	 *
25
	 * @param array $args
26
	 */
27 1
	function __construct( $args = array() ) {
28
29 1
		$args = wp_parse_args( $args, array(
30 1
			'model' => new Marker_Label_Model( array( 'label' => new \Clubdeuce\WPGoogleMaps\Marker_Label( $args ) ) ),
31
		) );
32
33 1
		parent::__construct( $args );
34
35 1
	}
36
37
}