-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMatcherInterface.php
63 lines (54 loc) · 1.5 KB
/
MatcherInterface.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
namespace Ray\Aop;
interface MatcherInterface
{
/**
* Returns a matcher which matches any input.
*
* @return AbstractMatcher
*/
public function any();
/**
* Returns a matcher which matches elements (methods or classes) with a given annotation.
*
* @param string $annotationName
*
* @return AbstractMatcher
*/
public function annotatedWith($annotationName);
/**
* Returns a matcher which matches subclasses of the given type (as well as the given type).
*
* @param string $superClass
*
* @return AbstractMatcher
*/
public function subclassesOf($superClass);
/**
* Returns a matcher which matches if the examined name starts with the specified string.
*
* @param string $prefix
*
* @return AbstractMatcher
*/
public function startsWith($prefix);
/**
* Returns a matcher which matches if combining two matchers using a logical OR.
*
* @return AbstractMatcher
*/
public function logicalOr(AbstractMatcher $matcherA, AbstractMatcher $matcherB);
/**
* Returns a matcher which matches if combining two matchers using a logical AND.
*
* @return AbstractMatcher
*/
public function logicalAnd(AbstractMatcher $matcherA, AbstractMatcher $matcherB);
/**
* Returns a matcher which does NOT matches.
*
* @return AbstractMatcher
*/
public function logicalNot(AbstractMatcher $matcher);
}