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

AbstractSearchResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A fromDatabaseObjects() 0 8 3
fromDatabaseObject() 0 1 ?
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
}