AbstractParser   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
c 3
b 0
f 0
lcom 0
cbo 0
dl 0
loc 24
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getHtmlResponse() 0 3 1
A setHtmlResponse() 0 3 1
1
<?php
2
/**
3
 * User: ms
4
 * Date: 29.08.15
5
 * Time: 10:14
6
 */
7
8
namespace  Mvg\Parser;
9
10
/**
11
 * Class AbstractParser
12
 * @package Mvg\Parser\Html
13
 */
14
class AbstractParser {
15
	/**
16
	 * @var string
17
	 */
18
	protected $htmlResponse;
19
20
	public function __construct($response) {
21
		$this->setHtmlResponse($response);
22
	}
23
24
	/**
25
	 * @return string
26
	 */
27
	protected function getHtmlResponse() {
28
		return $this->htmlResponse;
29
	}
30
31
	/**
32
	 * @param string $htmlResponse
33
	 */
34
	protected function setHtmlResponse($htmlResponse) {
35
		$this->htmlResponse = $htmlResponse;
36
	}
37
}