BoxMethods::height()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
/** @formatter:off
3
 * ******************************************************************
4
 * Created by   Marko Kungla on Jun 27, 2016 - 4:21:09 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         BoxMethods.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 BoxMethods
27
{
28
29
    /**
30
     * Depth (in meters) of the sides on the Z axis.
31
     *
32
     * @param array $dom_attributes            
33
     * @param double $depth            
34
     * @return void
35
     */
36 3
    public function depth(array &$dom_attributes, float $depth)
37
    {
38 3
        $dom_attributes['depth'] = $depth;
39 3
    }
40
41
    /**
42
     * Height (in meters) of the sides on the Y axis.
43
     *
44
     * @param array $dom_attributes            
45
     * @param double $height            
46
     * @return void
47
     */
48 4
    public function height(array &$dom_attributes, float $height)
49
    {
50 4
        $dom_attributes['height'] = $height;
51 4
    }
52
53
    /**
54
     * Width (in meters) of the sides on the X axis.
55
     *
56
     * @param array $dom_attributes            
57
     * @param double $width            
58
     * @return void
59
     */
60 4
    public function width(array &$dom_attributes, float $width)
61
    {
62 4
        $dom_attributes['width'] = $width;
63 4
    }
64
65
    /**
66
     * segmentsHeight
67
     *
68
     * @param array $dom_attributes            
69
     * @param int $int            
70
     */
71 2
    public function segmentsHeight(array &$dom_attributes, int $int)
72
    {
73 2
        $dom_attributes['segmentsHeight'] = $int;
74 2
    }
75
76
    /**
77
     * segmentsWidth
78
     *
79
     * @param array $dom_attributes            
80
     * @param int $int            
81
     */
82 2
    public function segmentsWidth(array &$dom_attributes, int $int)
83
    {
84 2
        $dom_attributes['segmentsWidth'] = $int;
85 2
    }
86
87
    /**
88
     * segmentsDepth
89
     *
90
     * @param array $dom_attributes            
91
     * @param int $int            
92
     */
93 2
    public function segmentsDepth(array &$dom_attributes, int $int)
94
    {
95 2
        $dom_attributes['segmentsDepth'] = $int;
96 2
    }
97
}
98