Completed
Push — develop ( b1074b...ecf42f )
by Mikaël
27:36
created

PhpFunctionParameter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setModel() 0 5 1
A getModel() 0 4 1
1
<?php
2
3
namespace WsdlToPhp\PackageGenerator\File\Element;
4
5
use WsdlToPhp\PhpGenerator\Element\PhpFunctionParameter as PhpFunctionParameterBase;
6
use WsdlToPhp\PackageGenerator\Model\Struct as StructModel;
7
8
class PhpFunctionParameter extends PhpFunctionParameterBase
9
{
10
    /**
11
     * @var StructModel
12
     */
13
    protected $model;
14
    /**
15
     * @param StructModel $model
16
     * @return PhpFunctionParameter
17
     */
18 30
    public function setModel(StructModel $model)
19
    {
20 30
        $this->model = $model;
21 30
        return $this;
22
    }
23
    /**
24
     * @return StructModel
25
     */
26 30
    public function getModel()
27
    {
28 30
        return $this->model;
29
    }
30
}
31