Commit 41a2709c authored by jeroendedauw's avatar jeroendedauw

Use @return self instead of @return Table

parent 8f2ba5b6
...@@ -128,7 +128,7 @@ class Table extends AbstractAsset ...@@ -128,7 +128,7 @@ class Table extends AbstractAsset
* @param array $columns * @param array $columns
* @param string|boolean $indexName * @param string|boolean $indexName
* *
* @return Table * @return self
*/ */
public function setPrimaryKey(array $columns, $indexName = false) public function setPrimaryKey(array $columns, $indexName = false)
{ {
...@@ -147,7 +147,7 @@ class Table extends AbstractAsset ...@@ -147,7 +147,7 @@ class Table extends AbstractAsset
* @param string|null $indexName * @param string|null $indexName
* @param array $flags * @param array $flags
* *
* @return Table * @return self
*/ */
public function addIndex(array $columnNames, $indexName = null, array $flags = array()) public function addIndex(array $columnNames, $indexName = null, array $flags = array())
{ {
...@@ -193,7 +193,7 @@ class Table extends AbstractAsset ...@@ -193,7 +193,7 @@ class Table extends AbstractAsset
* @param array $columnNames * @param array $columnNames
* @param string|null $indexName * @param string|null $indexName
* *
* @return Table * @return self
*/ */
public function addUniqueIndex(array $columnNames, $indexName = null) public function addUniqueIndex(array $columnNames, $indexName = null)
{ {
...@@ -213,7 +213,7 @@ class Table extends AbstractAsset ...@@ -213,7 +213,7 @@ class Table extends AbstractAsset
* @param string|null $newIndexName The name of the index to rename to. * @param string|null $newIndexName The name of the index to rename to.
* If null is given, the index name will be auto-generated. * If null is given, the index name will be auto-generated.
* *
* @return Table This table instance. * @return self This table instance.
* *
* @throws SchemaException if no index exists for the given current name * @throws SchemaException if no index exists for the given current name
* or if an index with the given new name already exists on this table. * or if an index with the given new name already exists on this table.
...@@ -278,7 +278,7 @@ class Table extends AbstractAsset ...@@ -278,7 +278,7 @@ class Table extends AbstractAsset
* @param boolean $isPrimary * @param boolean $isPrimary
* @param array $flags * @param array $flags
* *
* @return Table * @return self
* *
* @throws SchemaException * @throws SchemaException
*/ */
...@@ -325,7 +325,7 @@ class Table extends AbstractAsset ...@@ -325,7 +325,7 @@ class Table extends AbstractAsset
* @param string $oldColumnName * @param string $oldColumnName
* @param string $newColumnName * @param string $newColumnName
* *
* @return Table * @return self
* *
* @throws DBALException * @throws DBALException
*/ */
...@@ -342,7 +342,7 @@ class Table extends AbstractAsset ...@@ -342,7 +342,7 @@ class Table extends AbstractAsset
* @param string $columnName * @param string $columnName
* @param array $options * @param array $options
* *
* @return Table * @return self
*/ */
public function changeColumn($columnName, array $options) public function changeColumn($columnName, array $options)
{ {
...@@ -357,7 +357,7 @@ class Table extends AbstractAsset ...@@ -357,7 +357,7 @@ class Table extends AbstractAsset
* *
* @param string $columnName * @param string $columnName
* *
* @return Table * @return self
*/ */
public function dropColumn($columnName) public function dropColumn($columnName)
{ {
...@@ -378,7 +378,7 @@ class Table extends AbstractAsset ...@@ -378,7 +378,7 @@ class Table extends AbstractAsset
* @param array $options * @param array $options
* @param string|null $constraintName * @param string|null $constraintName
* *
* @return Table * @return self
*/ */
public function addForeignKeyConstraint($foreignTable, array $localColumnNames, array $foreignColumnNames, array $options=array(), $constraintName = null) public function addForeignKeyConstraint($foreignTable, array $localColumnNames, array $foreignColumnNames, array $options=array(), $constraintName = null)
{ {
...@@ -399,7 +399,7 @@ class Table extends AbstractAsset ...@@ -399,7 +399,7 @@ class Table extends AbstractAsset
* @param array $foreignColumnNames * @param array $foreignColumnNames
* @param array $options * @param array $options
* *
* @return Table * @return self
*/ */
public function addUnnamedForeignKeyConstraint($foreignTable, array $localColumnNames, array $foreignColumnNames, array $options=array()) public function addUnnamedForeignKeyConstraint($foreignTable, array $localColumnNames, array $foreignColumnNames, array $options=array())
{ {
...@@ -417,7 +417,7 @@ class Table extends AbstractAsset ...@@ -417,7 +417,7 @@ class Table extends AbstractAsset
* @param array $foreignColumnNames * @param array $foreignColumnNames
* @param array $options * @param array $options
* *
* @return Table * @return self
* *
* @throws SchemaException * @throws SchemaException
*/ */
...@@ -449,7 +449,7 @@ class Table extends AbstractAsset ...@@ -449,7 +449,7 @@ class Table extends AbstractAsset
* @param string $name * @param string $name
* @param string $value * @param string $value
* *
* @return Table * @return self
*/ */
public function addOption($name, $value) public function addOption($name, $value)
{ {
...@@ -482,7 +482,7 @@ class Table extends AbstractAsset ...@@ -482,7 +482,7 @@ class Table extends AbstractAsset
* *
* @param Index $indexCandidate * @param Index $indexCandidate
* *
* @return Table * @return self
* *
* @throws SchemaException * @throws SchemaException
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment