Passed
Push — master ( 87ba60...d80a49 )
by Alain
02:43
created

ViewFinder::find()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 4

Importance

Changes 0
Metric Value
dl 0
loc 16
ccs 7
cts 7
cp 1
rs 9.2
c 0
b 0
f 0
cc 4
eloc 8
nc 4
nop 2
crap 4
1
<?php
2
/**
3
 * Bright Nucleus View Component.
4
 *
5
 * @package   BrightNucleus\View
6
 * @author    Alain Schlesser <[email protected]>
7
 * @license   MIT
8
 * @link      http://www.brightnucleus.com/
9
 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
 */
11
12
namespace BrightNucleus\View\Engine;
13
14
use BrightNucleus\View\Support\Finder;
15
use BrightNucleus\View\View;
16
17
/**
18
 * Interface BaseViewFinder.
19
 *
20
 * @since   0.1.0
21
 *
22
 * @package BrightNucleus\View\View
23
 * @author  Alain Schlesser <[email protected]>
24
 */
25
interface ViewFinder extends Finder
26
{
27
28
    /**
29
     * Find a result based on a specific criteria.
30
     *
31
     * @since 0.1.0
32
     *
33
     * @param array       $criteria Criteria to search for.
34
     * @param Engine|null $engine   Optional. Engine to use with the view.
35
     *
36
     * @return View View that was found.
37
     */
38
    public function find(array $criteria, Engine $engine = null);
39
}
40