Migrations\View\Helper\MigrationHelper::tableStatement PHP Method

tableStatement() public method

Returns a $this->table() statement only if it was not issued already
public tableStatement ( string $table, boolean $reset = false ) : string
$table string Table for which the statement is needed
$reset boolean
return string
    public function tableStatement($table, $reset = false)
    {
        if ($reset === true) {
            unset($this->tableStatements[$table]);
        }
        if (!isset($this->tableStatements[$table])) {
            $this->tableStatements[$table] = true;
            return '$this->table(\'' . $table . '\')';
        }
        return '';
    }