* @license http://opensource.org/licenses/GPL-2.0 GNU Public License */ class InsertStatement extends Statement { /** * Options for `INSERT` statements. * * @var array */ public static $OPTIONS = array( 'LOW_PRIORITY' => 1, 'DELAYED' => 2, 'HIGH_PRIORITY' => 3, 'IGNORE' => 4, ); /** * Tables used as target for this statement. * * @var IntoKeyword */ public $into; /** * Values to be inserted. * * @var ArrayObj[] */ public $values; /** * @return string */ public function build() { return 'INSERT ' . $this->options . ' INTO ' . $this->into . ' VALUES ' . ArrayObj::build($this->values); } }