ProducesPart::parseProduces()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
namespace gossi\swagger\parts;
3
4
use phootwork\collection\Map;
5
use phootwork\collection\Set;
6
7
trait ProducesPart {
8
9
	private $produces;
10
11 13
	private function parseProduces(Map $data) {
12 13
		$this->produces = $data->get('produces', new Set());
13 13
	}
14
15
	/**
16
	 * Return produces
17
	 *
18
	 * @return Set
19
	 */
20
	public function getProduces() {
21
		return $this->produces;
22
	}
23
24
}
25