Skip to content

Commit

Permalink
Fixes #7 : remove Adapter\Adapter::getHelpers()
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Jul 24, 2020
1 parent 69f932b commit 16110a0
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Adapter/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,26 +233,6 @@ public function createStatement($initialSql = null, $initialParameters = null)
return $statement;
}

public function getHelpers()
{
$functions = [];
$platform = $this->platform;
foreach (func_get_args() as $arg) {
switch ($arg) {
case self::FUNCTION_QUOTE_IDENTIFIER:
$functions[] = function ($value) use ($platform) {
return $platform->quoteIdentifier($value);
};
break;
case self::FUNCTION_QUOTE_VALUE:
$functions[] = function ($value) use ($platform) {
return $platform->quoteValue($value);
};
break;
}
}
}

/**
* @param $name
* @throws Exception\InvalidArgumentException
Expand Down

0 comments on commit 16110a0

Please sign in to comment.