-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,11 @@ sudo: false | |
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- hhvm | ||
|
||
before_script: | ||
- composer install -n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
<?php | ||
|
||
namespace SeanJA; | ||
|
||
interface DbInterface | ||
{ | ||
/** | ||
* Escape a value | ||
* @param $value | ||
* | ||
* @param string $value The value to be escaped | ||
* | ||
* @return string | ||
*/ | ||
public function escape($value); | ||
|
||
/** | ||
* Quote a string | ||
* @param $value | ||
* @return mixed | ||
* | ||
* @param string $value The value to be quoted | ||
* | ||
* @return string | ||
*/ | ||
public function quote($value); | ||
|
||
/** | ||
* Quote a field | ||
* @param $value | ||
* @return mixed | ||
* | ||
* @param string $field The field to be quoted | ||
* | ||
* @return string | ||
*/ | ||
public function fieldQuote($value); | ||
public function fieldQuote($field); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters