PHP Classes

File: src/query/TableQuery.php

Recommend this page to a friend!
  Classes of Vitaly   Queasy DB   src/query/TableQuery.php   Download  
File: src/query/TableQuery.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Queasy DB
Execute queries by accessing class variables
Author: By
Last change:
Date: 3 years ago
Size: 354 bytes
 

Contents

Class file image Download
<?php

namespace queasy\db\query;

use
PDO;

abstract class
TableQuery extends Query
{
    private
$tableName;

    public function
__construct(PDO $pdo, $tableName, $sql = '')
    {
       
$this->tableName = $tableName;

       
parent::__construct($pdo, $sql);
    }

    protected function
tableName()
    {
        return
$this->tableName;
    }
}