diff --git a/src/Statements/ForeignKeyDefinition.php b/src/Statements/ForeignKeyDefinition.php index c7a9e23..c848e34 100644 --- a/src/Statements/ForeignKeyDefinition.php +++ b/src/Statements/ForeignKeyDefinition.php @@ -27,10 +27,10 @@ class ForeignKeyDefinition implements IStatement /** @var string */ private $targetColumns; - /** @var int */ + /** @var string */ private $onUpdateAction = self::ACTION_RESTRICT; - /** @var int */ + /** @var string */ private $onDeleteAction = self::ACTION_RESTRICT; @@ -64,7 +64,7 @@ public function __construct($name, $columns = array(), $targetTable, $targetColu /** - * @param int + * @param string * @return self */ public function setOnUpdateAction($onUpdateAction) @@ -79,7 +79,7 @@ public function setOnUpdateAction($onUpdateAction) /** - * @param int + * @param string * @return self */ public function setOnDeleteAction($onDeleteAction) diff --git a/src/Statements/IndexColumnDefinition.php b/src/Statements/IndexColumnDefinition.php index e44a3ec..17274e6 100644 --- a/src/Statements/IndexColumnDefinition.php +++ b/src/Statements/IndexColumnDefinition.php @@ -16,7 +16,7 @@ class IndexColumnDefinition implements IStatement /** @var string|NULL */ private $name; - /** @var int */ + /** @var string */ private $order; /** @var int|NULL */ @@ -37,7 +37,7 @@ public function __construct($name, $order = self::ASC, $length = NULL) /** - * @param int + * @param string * @return self */ private function setOrder($order) diff --git a/src/Statements/IndexDefinition.php b/src/Statements/IndexDefinition.php index 7ca9cea..92aeaaf 100644 --- a/src/Statements/IndexDefinition.php +++ b/src/Statements/IndexDefinition.php @@ -18,10 +18,10 @@ class IndexDefinition implements IStatement /** @var string|NULL */ private $name; - /** @var int */ + /** @var string */ private $type; - /** @var string[] */ + /** @var IndexColumnDefinition[] */ private $columns = array();