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

Map::make_args()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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
}