This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| interface DecoratorInterface | |
| { | |
| public static function handle(\Reflector $context, self $instance): void; | |
| } |
This file contains hidden or 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
| { | |
| "$id": "graphql/introspection", | |
| "description": "A JSON Schema for checking GraphQL introspection", | |
| "type": "object", | |
| "properties": { | |
| "data": { | |
| "type": "object", | |
| "properties": { | |
| "__schema": { | |
| "type": "object", |
This file contains hidden or 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
| <?php | |
| /** | |
| * Exec "composer require railt/lexer ~1.2" | |
| */ | |
| declare(strict_types=1); | |
| namespace Example; | |
| use Railt\Io\Readable; | |
| use Railt\Lexer\Definition\TokenDefinition; |
This file contains hidden or 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
| <?php | |
| declare(strict_types=1); | |
| class Pool | |
| { | |
| /** | |
| * @var \Generator[]|array[] | |
| */ | |
| private $iterators = []; |
This file contains hidden or 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
| export default class Collection<T> { | |
| /** | |
| * The items contained in the collection. | |
| */ | |
| _items: Iterable<T>; | |
| /** | |
| * Create a new collection. | |
| * | |
| * @param items |
This file contains hidden or 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
| <?php | |
| function This an EPIC test for the King() | |
| { | |
| return __FUNCTION__ . ' says ' . 42; | |
| } | |
| echo This an EPIC test for the King(); |
This file contains hidden or 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
| # | |
| # file ~/schema/index.graphqls | |
| # | |
| schema { | |
| query: Query | |
| } | |
| type Query { | |
| user: User |
This file contains hidden or 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
| type Story implements Test { | |
| id: ID! @test(some: "any") | |
| text: String! | |
| isPublished: Boolean | |
| author: Author! | |
| comments: [Comment!]! | |
| } | |
| type Author { | |
| id: ID! |
This file contains hidden or 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
| <?php | |
| /** | |
| * This file is part of laravel.su package. | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ | |
| declare(strict_types=1); |
This file contains hidden or 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
| import Reader from './Reader'; | |
| import Target from './Target'; | |
| /** | |
| * This is default annotation property for automatic type casting: | |
| * <code> | |
| * @Annotation({ some: any }) | |
| * // => will be casts "as is" {some: any} | |
| * | |
| * @Annotation("any") |