diff --git a/Structural/FluentInterface/SQL.php b/Structural/FluentInterface/SQL.php deleted file mode 100644 index 3afd300..0000000 --- a/Structural/FluentInterface/SQL.php +++ /dev/null @@ -1,80 +0,0 @@ -fields = $fields; - - return $this; - } - - /** - * adds a FROM clause - * - * @param string $table - * @param string $alias - * - * @return SQL - */ - public function from($table, $alias) - { - $this->from[] = $table . ' AS ' . $alias; - - return $this; - } - - /** - * adds a WHERE condition - * - * @param string $condition - * - * @return SQL - */ - public function where($condition) - { - $this->where[] = $condition; - - return $this; - } - - /** - * Gets the query, just an example of building a query, - * no check on consistency - * - * @return string - */ - public function getQuery() - { - return 'SELECT ' . implode(',', $this->fields) - . ' FROM ' . implode(',', $this->from) - . ' WHERE ' . implode(' AND ', $this->where); - } -}