Completed
Push — master ( f4d4c4...598d1e )
by Tom
02:08
created

TSSString::getRules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 4
1
<?php
2
/* @description     Transformation Style Sheets - Revolutionising PHP templating    *
3
 * @author          Tom Butler [email protected]                                             *
4
 * @copyright       2017 Tom Butler <[email protected]> | https://r.je/                      *
5
 * @license         http://www.opensource.org/licenses/bsd-license.php  BSD License *
6
 * @version         1.2                                                             */
7
namespace Transphporm\SheetLoader;
8
class TSSString implements TSSRules {
9
	private $str;
10
	private $filePath;
11
12
	public function __construct($str, $filePath) {
13
		$this->str = $str;
14
		$this->filePath = $filePath;
15
	}
16
17
	public function updateRequired($data) {
18
		return true;
19
	}
20
21
	public function getCacheKey($data) {
0 ignored issues
show
Unused Code introduced by
The parameter $data is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
22
		return '';
23
	}
24
25
	public function getRules($cssToXpath, $valueParser, $sheetLoader, $indexStart) {
26
		return (new \Transphporm\Parser\Sheet($this->str, $cssToXpath, $valueParser, $this->filePath, $sheetLoader))->parse($indexStart);
27
	}
28
29
	public function write() {
30
	}
31
}