Completed
Push — master ( 4eaf4e...392da2 )
by WEBEWEB
02:39
created

ChartAccountsAccount   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getAccountType() 0 3 1
A setAccountType() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2018 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Core\ChartAccounts\Model;
13
14
/**
15
 * Chart of accounts account model.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Library\Core\ChartAccounts\Model
19
 */
20
class ChartAccountsAccount extends AbstractChartAccountsModel {
21
22
    /**
23
     * Account type.
24
     *
25
     * @var ChartAccountsType
26
     */
27
    private $accountType;
28
29
    /**
30
     * Constructor.
31
     */
32
    public function __construct() {
33
        parent::__construct();
34
    }
35
36
    /**
37
     * Get the account type.
38
     *
39
     * @return ChartAccountsType Returns the type.
40
     */
41
    public function getAccountType() {
42
        return $this->accountType;
43
    }
44
45
    /**
46
     * Set the account type.
47
     *
48
     * @param ChartAccountsType $accountType The account type.
49
     * @return ChartAccountsAccount Returns this COA account.
50
     */
51
    public function setAccountType(ChartAccountsType $accountType) {
52
        $this->accountType = $accountType;
53
        return $this;
54
    }
55
56
}
57