SchemaPart::getSchema()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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