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

UrlPart   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 28
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A parseUrl() 0 3 1
A getUrl() 0 3 1
A setUrl() 0 4 1
1
<?php
2
namespace gossi\swagger\parts;
3
4
use phootwork\collection\Map;
5
6
trait UrlPart {
7
	
8
	/** @var string */
9
	private $url = false;
10
	
11 11
	private function parseUrl(Map $data) {
12 11
		$this->url = $data->get('url');
13 11
	}
14
	
15
	/**
16
	 *
17
	 * @return string
18
	 */
19 1
	public function getUrl() {
20 1
		return $this->url;
21
	}
22
	
23
	/**
24
	 *
25
	 * @param string $url
26
	 * @return $this
27
	 */
28 1
	public function setUrl($url) {
29 1
		$this->url = $url;
30 1
		return $this;
31
	}
32
33
}