SearchableTestPage_Controller
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 2
1
<?php
2
3
/**
4
 * @package elastica
5
 * @subpackage tests
6
 */
7
class SearchableTestPage extends Page implements TestOnly {
8
	private static $searchable_fields = array('Country','PageDate');
9
10
	private static $db = array(
11
		'Country' => 'Varchar',
12
		'PageDate' => 'Date'
13
	);
14
15
}
16
17
/**
18
 * @package elastica
19
 * @subpackage tests
20
 */
21
class SearchableTestPage_Controller extends Controller implements TestOnly {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
22
}
23
24