PlaneMethods   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 2 Features 0
Metric Value
wmc 2
c 4
b 2
f 0
lcom 0
cbo 0
dl 0
loc 26
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A height() 0 4 1
A width() 0 4 1
1
<?php
2
/** @formatter:off
3
 * ******************************************************************
4
 * Created by   Marko Kungla on Jun 27, 2016 - 4:42:18 AM
5
 * Contact      [email protected]
6
 * @copyright   2016 Marko Kungla - https://github.com/mkungla
7
 * @license     The MIT License (MIT)
8
 * 
9
 * @category       AframeVR
10
 * @package        aframe-php
11
 * 
12
 * Lang         PHP (php version >= 7)
13
 * Encoding     UTF-8
14
 * File         PlaneMethods.php
15
 * Code format  PSR-2 and 12
16
 * @link        https://github.com/mkungla/aframe-php
17
 * @issues      https://github.com/mkungla/aframe-php/issues
18
 * ********************************************************************
19
 * Contributors:
20
 * @author Marko Kungla <[email protected]>
21
 * ********************************************************************
22
 * Comments:
23
 * @formatter:on */
24
namespace AframeVR\Core\Components\Geometry\Methods;
25
26
class PlaneMethods
27
{
28
    /**
29
     * Height along the Y axis.
30
     *
31
     * @param array $dom_attributes            
32
     * @param double $height            
33
     * @return void
34
     */
35 4
    public function height(array &$dom_attributes, float $height)
36
    {
37 4
        $dom_attributes['height'] = $height;
38 4
    }
39
40
    /**
41
     * Width along the X axis.
42
     *
43
     * @param array $dom_attributes            
44
     * @param double $width            
45
     * @return void
46
     */
47 4
    public function width(array &$dom_attributes, float $width)
48
    {
49 4
        $dom_attributes['width'] = $width;
50 4
    }
51
}
52