public function __construct($tableName, $key = null, $value = null) { $this->tableName = $tableName; if (!Tools::isNull($key, $value)) { $this->where($key, $value); } }