Added base files, with the basic ability to add/remove variables from the Runtime.

This commit is contained in:
Netkas 2022-12-23 00:10:02 -05:00
parent aef02c4bff
commit 7e5207c45a
19 changed files with 906 additions and 0 deletions

View file

@ -0,0 +1,31 @@
<?php
namespace RTEX\Classes;
use Exception;
use RTEX\Abstracts\VariableTypes;
use RTEX\Interfaces\InstructionInterface;
class Validate
{
/**
* Determines if the input is a supported variable type
*
* @param $type
* @return bool
*/
public static function supportedVariableType($type): bool
{
try
{
Utilities::determineType($type);
}
catch(Exception $e)
{
unset($e);
return false;
}
return true;
}
}