Completed
Pull Request — master (#35)
by Aleh
03:05
created

Variable   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 22
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getName() 0 3 1
A getFQCN() 0 3 1
A setFQCN() 0 3 1
A setType() 0 3 1
A getType() 0 3 1
1
<?php
2
3
namespace Padawan\Domain\Project\Node;
4
5
class Variable {
6
    public function __construct($name) {
7
        $this->name = $name;
8
    }
9
    public function getName() {
10
        return $this->name;
11
    }
12
    public function getFQCN() {
13
        return $this->fqcn;
14
    }
15
    public function setFQCN($fqcn) {
16
        $this->fqcn = $fqcn;
17
    }
18
    public function setType($fqcn) {
19
        $this->setFQCN($fqcn);
20
    }
21
    public function getType() {
22
        return $this->getFQCN();
23
    }
24
    private $name;
25
    private $fqcn;
26
}
27