Completed
Push — master ( ce557b...46a40a )
by Marko
02:10
created

Sky   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaults() 0 6 1
1
<?php
2
/** @formatter:off
3
 * ******************************************************************
4
 * Created by   Marko Kungla on Jun 21, 2016 - 12:35:01 PM
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         Sky.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
26
use \AframeVR\Extras\Primitives\Sphere;
27
28
/**
29
 * <a-sky>
30
 *
31
 * The sky primitive adds a background to a scene or display a 360-degree photo.
32
 * It is an entity that prescribes a large sphere with the material mapped to the inside.
33
 */
34
final class Sky extends Sphere
35
{
36
37 5
    public function defaults()
38
    {
39 5
        $this->radius(100);
40 5
        $this->segmentsHeight(20);
41 5
        $this->segmentsWidth(64);
42 5
    }
43
}
44