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

Marker_Label::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 9.6666
cc 1
eloc 4
nc 1
nop 1
crap 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
}