Bytes::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * @author: Viskov Sergey
4
 * @date  : 3/24/16
5
 * @time  : 7:19 PM
6
 */
7
8
namespace LTDBeget\structures\informationUnits;
9
10
use LTDBeget\structures\informationUnits\base\InformationUnit;
11
12
/**
13
 * Class Bytes
14
 *
15
 * @method Bytes add(InformationUnit $unit)
16
 * @method Bytes subtract(InformationUnit $unit)
17
 * @method Bytes multiply(float $unit)
18
 * @method Bytes divide(float $unit)
19
 * 
20
 * @package LTDBeget\structures\informationUnits
21
 */
22
class Bytes extends InformationUnit
23
{
24
    /**
25
     * Bytes 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::$byte;
35
    }
36
}