Rate::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
/**
4
 * This file is part of the Investform module for webcms2.
5
 * Copyright (c) @see LICENSE
6
 */
7
8
namespace WebCMS\InvestformModule\Common;
9
10
/**
11
 * 
12
 */
13
class Rate
14
{
15
	private $length;
16
17
	private $rate;
18
19
	private $charge;
20
21
	public function __construct($length, $rate, $charge)
22
	{
23
		$this->length = $length;
24
		$this->rate = $rate;
25
		$this->charge = $charge;
26
	}
27
28
    /**
29
     * Gets the value of length.
30
     *
31
     * @return mixed
32
     */
33
    public function getLength()
34
    {
35
        return $this->length;
36
    }
37
38
    /**
39
     * Sets the value of length.
40
     *
41
     * @param mixed $length the length
42
     *
43
     * @return self
44
     */
45
    public function setLength($length)
46
    {
47
        $this->length = $length;
48
49
        return $this;
50
    }
51
52
    /**
53
     * Gets the value of rate.
54
     *
55
     * @return mixed
56
     */
57
    public function getRate()
58
    {
59
        return $this->rate;
60
    }
61
62
    /**
63
     * Sets the value of rate.
64
     *
65
     * @param mixed $rate the rate
66
     *
67
     * @return self
68
     */
69
    public function setRate($rate)
70
    {
71
        $this->rate = $rate;
72
73
        return $this;
74
    }
75
76
    /**
77
     * Gets the value of charge.
78
     *
79
     * @return mixed
80
     */
81
    public function getCharge()
82
    {
83
        return $this->charge;
84
    }
85
86
    /**
87
     * Sets the value of charge.
88
     *
89
     * @param mixed $charge the charge
90
     *
91
     * @return self
92
     */
93
    public function setCharge($charge)
94
    {
95
        $this->charge = $charge;
96
97
        return $this;
98
    }
99
}