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

PhpFunctionParameter::getModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
crap 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