public function declareVariables(array $statement)
{
if (isset($statement['data-type'])) {
if ($statement['data-type'] != 'variable') {
return;
}
}
foreach ($statement['variables'] as $variable) {
if (isset($variable['expr'])) {
if ($variable['expr']['type'] == 'string' || $variable['expr']['type'] == 'empty-array' || $variable['expr']['type'] == 'array') {
$this->variables[$variable['variable']] = false;
continue;
}
}
if (!isset($this->variables[$variable['variable']])) {
$this->variables[$variable['variable']] = true;
}
}
}