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
const machine = Machine({ | |
initial: 'idle', | |
context: { | |
userId: null, | |
projectId: null, | |
revision: 0 | |
}, | |
type: 'parallel', | |
states: { |
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
const myMachine = Machine({ | |
id: "machine", | |
initial: "idle", | |
context: { | |
id: null, | |
revision: 0, | |
isOwner: false, | |
isAuthenticated: true | |
}, | |
states: { |
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
const myMachine = Machine({ | |
id: "machine", | |
initial: "idle", | |
context: { | |
id: null, | |
revision: 0, | |
isOwner: false, | |
isAuthenticated: false |
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
const machine = Machine({ | |
id: 'doctor', | |
initial: 'idle', | |
states: { | |
idle: { | |
type: 'parallel', | |
states: { | |
aok: { | |
initial: 'idle', | |
states: { |
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); | |
namespace Some\App; | |
use GraphQL\Error\DebugFlag; | |
use GraphQL\GraphQL; | |
use GraphQL\Utils\BuildSchema; | |
use GuzzleHttp\Psr7\Response; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; |
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
Powered* | |
power failed -> Unpowered | |
Green* | |
tick -> Yellow | |
Yellow | |
tick -> Red | |
Red |
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 | |
namespace Your\Package\Form\Finishers; | |
use Neos\Eel\EelEvaluatorInterface; | |
use Neos\Eel\Exception as EelException; | |
use Neos\Eel\Package as EelPackage; | |
use Neos\Eel\Utility as EelUtility; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\ResourceManagement\PersistentResource; | |
use Neos\Flow\ResourceManagement\ResourceManager; |
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 | |
final class Customer implements \JsonSerializable | |
{ | |
private CustomerId $id; | |
private FullName $name; | |
public function __construct(CustomerId $id, FullName $name) | |
{ | |
$this->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 | |
final class SomeIdentifier | |
{ | |
/** | |
* @var string | |
*/ | |
private $value; | |
/** | |
* @var self[] |