for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Thunder\Logeek\Action;
use Thunder\Logeek\ActionInterface;
use Thunder\Logeek\Board;
final class IfAction implements ActionInterface
{
public function execute(Board $board, string $alias, array $operation)
$board->getVariable($operation['left']) === $operation['right']
? $board->runActorProgram($alias, $operation['true'])
: $board->runActorProgram($alias, $operation['false']);
}
public function getAlias(): string
return 'if';
public function getArguments(): array
return ['left', 'operand', 'right', 'true', 'false'];