-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from ray-di/types
Add centralized type definitions in Types.php
- Loading branch information
Showing
13 changed files
with
106 additions
and
173 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ray\Aop; | ||
|
||
use ArrayObject; | ||
|
||
/** | ||
* Type definitions for Ray.Aop | ||
* | ||
* @phpcs:disable SlevomatCodingStandard.Commenting.DocCommentSpacing | ||
* @template T of object | ||
* | ||
* Domain Types | ||
* @psalm-type ScriptDir = non-empty-string | ||
* @psalm-type ClassName = class-string | ||
* @psalm-type MethodName = non-empty-string | ||
* @psalm-type AspectClassName = non-empty-string | ||
* @psalm-type BindingName = non-empty-string | ||
* @psalm-type MatcherName = non-empty-string | ||
* | ||
* Base Types | ||
* @psalm-type ArgumentList = ArrayObject<int, mixed> | ||
* @psalm-type NamedArguments = ArrayObject<MethodName, mixed> | ||
* @psalm-type InterceptorList = array<MethodInterceptor> | ||
* @psalm-type ConstructorArguments = list<mixed> | ||
* @psalm-type ReflectionClassTemplate = ReflectionClass<T> | ||
* | ||
* Matcher Types | ||
* @psalm-type MatcherArguments = array<array-key, mixed> | ||
* @psalm-type MethodInterceptors = array<array-key, MethodInterceptor> | ||
* @psalm-type MatcherConfig = array{ | ||
* classMatcher: AbstractMatcher, | ||
* methodMatcher: AbstractMatcher, | ||
* interceptors: MethodInterceptors | ||
* } | ||
* @psalm-type Arguments = array<array-key, mixed> | ||
* @psalm-type BuiltinMethodsNames = list<non-empty-string> | ||
* | ||
* Method and Binding Types | ||
* @psalm-type MethodBindings = array<MethodName, MethodInterceptors> | ||
* @psalm-type ClassBindings = array<ClassName, MethodBindings> | ||
* @psalm-type MatcherConfigList = array<array-key, MatcherConfig> | ||
* @psalm-type MethodBoundInterceptors = array<MethodName, MethodInterceptors> | ||
* @psalm-type ClassBoundInterceptors = array<ClassName, MethodBoundInterceptors> | ||
* | ||
* PointCut Types | ||
* @psalm-type Pointcuts = array<Pointcut> | ||
* @phpcs:enable | ||
*/ | ||
final class Types | ||
{ | ||
/** @codeCoverageIgnore */ | ||
private function __construct() | ||
{ | ||
} | ||
} |