pluf/workflow

View on GitHub
src/Imp/UtilImpl.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Pluf\Workflow\Imp;

class UtilImpl
{
    
    public static function isReservedKey($key):bool{
       return $key == 'from' ||
       $key == 'to' ||
       $key == 'event' ||
       $key == 'context' ||
       $key == 'stateMachine' ||
       $key == 'position' ||
       $key == 'stateMachineImplementation' ||
        is_numeric($key);
    }
}