ConsumesPart   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 60%

Importance

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

2 Methods

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