Completed
Push — master ( be6b9d...0e6890 )
by Tom
03:08
created

Bind::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/* @description     Transformation Style Sheets - Revolutionising PHP templating    *
3
 * @author          Tom Butler [email protected]                                             *
4
 * @copyright       2015 Tom Butler <[email protected]> | https://r.je/                      *
5
 * @license         http://www.opensource.org/licenses/bsd-license.php  BSD License *
6
 * @version         0.9                                                             */
7
namespace Transphporm\Property;
8
class Bind implements \Transphporm\Property {
9
	private $data;
10
11
	public function __construct(\Transphporm\Hook\DataFunction $data) {
12
		$this->data = $data;
13
	}
14
15
	public function run($value, \DomElement $element, \Transphporm\Hook\Rule $rule)  {
16
		$this->data->bind($element, $value);
17
	}
18
}