ParametersPart   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A parseParameters() 0 3 1
A getParameters() 0 3 1
1
<?php
2
namespace gossi\swagger\parts;
3
4
use gossi\swagger\collections\Parameters;
5
use phootwork\collection\Map;
6
7
trait ParametersPart {
8
9
	/** @var Parameters */
10
	private $parameters;
11
12 13
	private function parseParameters(Map $data) {
13 13
		$this->parameters = new Parameters($data->get('parameters', new Map()));
14 13
	}
15
16
	/**
17
	 * Return parameters
18
	 *
19
	 * @return Parameters
20
	 */
21 1
	public function getParameters() {
22 1
		return $this->parameters;
23
	}
24
25
}
26