diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-06-21 14:13:41 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-06-21 14:13:41 -0700 |
commit | a491348d442ab8e6cd2fa403d4365cdad78e52ce (patch) | |
tree | a00f575d82afb2c9051bad95398b4250f4a3d44d /vendor/fguillot/picodb/lib/PicoDb/Builder/BaseBuilder.php | |
parent | c73ac5f1f818b6b21083f6785b4b2f6d778a6496 (diff) |
Vendoring deprecated composer libs
Diffstat (limited to 'vendor/fguillot/picodb/lib/PicoDb/Builder/BaseBuilder.php')
-rw-r--r-- | vendor/fguillot/picodb/lib/PicoDb/Builder/BaseBuilder.php | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/vendor/fguillot/picodb/lib/PicoDb/Builder/BaseBuilder.php b/vendor/fguillot/picodb/lib/PicoDb/Builder/BaseBuilder.php deleted file mode 100644 index e075ae3c..00000000 --- a/vendor/fguillot/picodb/lib/PicoDb/Builder/BaseBuilder.php +++ /dev/null @@ -1,86 +0,0 @@ -<?php - -namespace PicoDb\Builder; - -use PicoDb\Database; - -/** - * Class InsertBuilder - * - * @package PicoDb\Builder - * @author Frederic Guillot - */ -abstract class BaseBuilder -{ - /** - * @var Database - */ - protected $db; - - /** - * @var ConditionBuilder - */ - protected $conditionBuilder; - - /** - * @var string - */ - protected $table = ''; - - /** - * @var string[] - */ - protected $columns = array(); - - /** - * InsertBuilder constructor - * - * @param Database $db - * @param ConditionBuilder $condition - */ - public function __construct(Database $db, ConditionBuilder $condition) - { - $this->db = $db; - $this->conditionBuilder = $condition; - } - - /** - * Get object instance - * - * @static - * @access public - * @param Database $db - * @param ConditionBuilder $condition - * @return static - */ - public static function getInstance(Database $db, ConditionBuilder $condition) - { - return new static($db, $condition); - } - - /** - * Set table name - * - * @access public - * @param string $table - * @return $this - */ - public function withTable($table) - { - $this->table = $table; - return $this; - } - - /** - * Set columns name - * - * @access public - * @param string[] $columns - * @return $this - */ - public function withColumns(array $columns) - { - $this->columns = $columns; - return $this; - } -} |