Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • ColumnRef
  • DDLQuery
  • Expression
  • Insert
  • Join
  • Predicate
  • Query
  • Scalar
  • TableRef

Interfaces

  • IQuery
  • IQueryFragment
  • IQueryValue
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace Alchemy\core\query;
 4: use Alchemy\core\Element;
 5: 
 6: 
 7: /**
 8:  * Represents a DDL transformation query
 9:  */
10: class DDLQuery extends Element implements IQuery {
11: 
12:     protected $table;
13: 
14:     /**
15:      * Object constructor
16:      *
17:      * @param Table $table
18:      */
19:     public function __construct($type, $table) {
20:         parent::__construct($type);
21:         $this->table = $table;
22:     }
23: 
24: 
25:     /**
26:      * @return Table
27:      */
28:     public function getTable() {
29:         return $this->table;
30:     }
31: 
32: 
33:     /**
34:      * Recursively get all scalar parameters used by this expression
35:      *
36:      * @return array array(Scalar, Scalar, ...)
37:      */
38:     public function parameters() {
39:         return array();
40:     }
41: }
42: 
API documentation generated by ApiGen 2.8.0