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

ViewFinder   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 42
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
find() 0 1 ?
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