Completed
Push — dev2 ( 17a3b8...48fafe )
by Gordon
03:14
created

PageControllerTemplateOverrideExtension   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 12
rs 10
1
<?php
2
3
class PageControllerTemplateOverrideExtension extends DataExtension implements TestOnly {
4
	/* Counter for number of times the template override method  has been called */
5
	private static $ctr = 0;
6
7
	public function useTemplateOverride($data) {
8
		self::$ctr++;
9
	}
10
11
	public static function getTemplateOverrideCounter() {
12
		return self::$ctr;
13
	}
14
}
15