Completed
Push — master ( 735cac...641d44 )
by Jean-Christophe
04:20
created

AbstractSearchResult::fromDatabaseObjects()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 3
eloc 5
nc 2
nop 2
1
<?php
2
3
namespace Ajax\semantic\components\search;
4
5
abstract class AbstractSearchResult {
6
7
	public function fromDatabaseObjects($objects, $function) {
8
		if (isset($objects)) {
9
			foreach ( $objects as $object ) {
10
				$this->fromDatabaseObject($object, $function);
11
			}
12
		}
13
		return $this;
14
	}
15
16
	protected abstract function fromDatabaseObject($object, $function);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
17
}