Completed
Push — master ( ed2425...d8adec )
by Daryl
01:55
created

Map   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A make_args() 0 6 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()
14
 * @method   array center()
15
 * @method   array markers()
16
 * @method   int   zoom()
17
 */
18
class Map extends \WPLib_Item_Base {
19
20
    /**
21
     * @return array
22
     */
23
    function make_args() {
24
        return array(
25
            'center' => $this->center(),
26
            'zoom'   => (int)$this->zoom(),
27
        );
28
    }
29
}