forked from CuyZ/Valinor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: rename
GenericAssignerLexer
to TypeAliasLexer
- Loading branch information
Showing
8 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
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
29 changes: 0 additions & 29 deletions
29
src/Type/Parser/Factory/Specifications/GenericAssignerSpecification.php
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
src/Type/Parser/Factory/Specifications/TypeAliasAssignerSpecification.php
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,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CuyZ\Valinor\Type\Parser\Factory\Specifications; | ||
|
||
use CuyZ\Valinor\Type\Type; | ||
|
||
final class TypeAliasAssignerSpecification | ||
{ | ||
/** @var array<string, Type> */ | ||
private array $aliases; | ||
|
||
/** | ||
* @param array<string, Type> $aliases | ||
*/ | ||
public function __construct(array $aliases) | ||
{ | ||
$this->aliases = $aliases; | ||
} | ||
|
||
/** | ||
* @return array<string, Type> | ||
*/ | ||
public function aliases(): array | ||
{ | ||
return $this->aliases; | ||
} | ||
} |
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