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
<?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 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 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 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 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 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 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 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") |
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
<?php declare(strict_types = 1); | |
/** | |
* This file is part of MessageComponent package. | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace Serafim\MessageComponent; | |
use Illuminate\Contracts\Support\Renderable; |
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
<?php | |
/** | |
* Put this file to "app/Console/EnvironmentInstaller.php" | |
*/ | |
namespace App\Console; | |
use Dotenv\Dotenv; | |
use Composer\Script\Event; | |
use Illuminate\Support\Str; | |
use Composer\IO\IOInterface; |