ContactsExampleSuggestions::Process()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
class ContactsExampleSuggestions implements \RainLoop\Providers\Suggestions\ISuggestions
4
{
5
	/**
6
	 * @param \RainLoop\Model\Account $oAccount
7
	 * @param string $sQuery
8
	 * @param int $iLimit = 20
9
	 *
10
	 * @return array
11
	 */
12
	public function Process($oAccount, $sQuery, $iLimit = 20)
13
	{
14
		$aResult = array(
15
			array($oAccount->Email(), ''),
16
			array('[email protected]', 'name')
17
		);
18
19
		return $aResult;
20
	}
21
}
22