Completed
Push — master ( 819e89...46ea75 )
by Thomas
10:56
created

SchemesPart::parseSchemes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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