-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathClassifier.php
33 lines (27 loc) · 864 Bytes
/
Classifier.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php declare(strict_types=1);
namespace Wnx\LaravelStats\Contracts;
use Wnx\LaravelStats\ReflectionClass;
interface Classifier
{
/**
* Component Name displayed in the results.
*/
public function name(): string;
/**
* Determine if the given ReflectionClass should be classified
* as the component the Classifier Class represents.
*
*
*/
public function satisfies(ReflectionClass $class): bool;
/**
* Determine if the lines of code of the component should count towards
* the total number of lines of code of the application.
*/
public function countsTowardsApplicationCode(): bool;
/**
* Determine if the lines of code of the component should count towards
* the total number of lines of code of the test suite.
*/
public function countsTowardsTests(): bool;
}