TeraBytes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * @author: Viskov Sergey
4
 * @date  : 3/24/16
5
 * @time  : 7:21 PM
6
 */
7
8
namespace LTDBeget\structures\informationUnits;
9
10
use LTDBeget\structures\informationUnits\base\InformationUnit;
11
12
/**
13
 * Class TeraBytes
14
 *
15
 * @method TeraBytes add(InformationUnit $unit)
16
 * @method TeraBytes subtract(InformationUnit $unit)
17
 * @method TeraBytes multiply(float $unit)
18
 * @method TeraBytes divide(float $unit)
19
 * 
20
 * @package LTDBeget\structures\informationUnits
21
 */
22
class TeraBytes extends InformationUnit
23
{
24
    /**
25
     * TeraBytes constructor.
26
     *
27
     * @param float $amount
28
     *
29
     * @throws \OutOfBoundsException
30
     */
31
    public function __construct(float $amount)
32
    {
33
        parent::__construct($amount);
34
        $this->dimension = self::$teraByte;
35
    }
36
}