Completed
Branch master (fb685e)
by Marko
02:15
created

DefaultMethods   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 42
ccs 9
cts 9
cp 1
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A updateX() 0 4 1
A updateY() 0 4 1
A updateZ() 0 4 1
1
<?php
2
/** @formatter:off
3
 * ******************************************************************
4
 * Created by   Marko Kungla on Jun 27, 2016 - 2:54:40 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         DefaultMethods.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\Position\Methods;
25
26
class DefaultMethods
27
{
28
29
    /**
30
     * Negative X axis extends left.
31
     * Positive X Axis extends right.
32
     *
33
     * @param &array $dom_attributes            
0 ignored issues
show
Documentation introduced by
The doc-type &array could not be parsed: Unknown type name "&array" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
34
     * @param float|int $x_axis            
0 ignored issues
show
Documentation introduced by
Consider making the type for parameter $x_axis a bit more specific; maybe use double.
Loading history...
35
     * @return void
36
     */
37 51
    public function updateX(array &$dom_attributes, float $x_axis)
38
    {
39 51
        $dom_attributes['x'] = $x_axis;
40 51
    }
41
42
    /**
43
     * Negative Y axis extends up.
44
     * Positive Y Axis extends down.
45
     *
46
     * @param &array $dom_attributes            
0 ignored issues
show
Documentation introduced by
The doc-type &array could not be parsed: Unknown type name "&array" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
47
     * @param float|int $y_axis            
0 ignored issues
show
Documentation introduced by
Consider making the type for parameter $y_axis a bit more specific; maybe use double.
Loading history...
48
     * @return void
49
     */
50 51
    public function updateY(array &$dom_attributes, float $y_axis)
51
    {
52 51
        $dom_attributes['y'] = $y_axis;
53 51
    }
54
55
    /**
56
     * Negative Z axis extends in.
57
     * Positive Z Axis extends out.
58
     *
59
     * @param &array $dom_attributes            
0 ignored issues
show
Documentation introduced by
The doc-type &array could not be parsed: Unknown type name "&array" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
60
     * @param float|int $z_axis            
0 ignored issues
show
Documentation introduced by
Consider making the type for parameter $z_axis a bit more specific; maybe use double.
Loading history...
61
     * @return void
62
     */
63 51
    public function updateZ(array &$dom_attributes, float $z_axis)
64
    {
65 51
        $dom_attributes['z'] = $z_axis;
66 51
    }
67
}
68