Completed
Push — master ( e8b22d...bec3f6 )
by Marko
11s
created

Image::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
crap 1
1
<?php
2
/** @formatter:off
3
 * ******************************************************************
4
 * Created by   Marko Kungla on Jul 6, 2016 - 2:28:38 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         Image.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\Extras\Primitives;
25
use \AframeVR\Interfaces\EntityInterface;
26
27
class Image extends Plane implements EntityInterface
28
{
29
30
    /**
31
     * <a-plane>
32
     *
33
     * The plane primitive creates flat surfaces. It is an entity that prescribes the geometry with its geometric
34
     * primitive set to plane.
35
     * 
36
     * @return void
37
     */
38 2
    public function reset()
39
    {
40 2
        parent::reset();
41 2
        $this->component('Material')->shader('flat');
42 2
        $this->component('Material')->side('double');
43 2
        $this->color('#FFF');
44 2
        $this->transparent(true);
45 2
        $this->height(1.75);
46 2
        $this->width(1.75);
47
    }
48
}