AbstractParser::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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
}