Commit d2f081de authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #589 from JeroenDeDauw/param

Add missing @param tags
parents 0bd1c3b8 65ca16cb
...@@ -196,7 +196,7 @@ class OraclePlatform extends AbstractPlatform ...@@ -196,7 +196,7 @@ class OraclePlatform extends AbstractPlatform
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function getAlterSequenceSQL(\Doctrine\DBAL\Schema\Sequence $sequence) public function getAlterSequenceSQL(Sequence $sequence)
{ {
return 'ALTER SEQUENCE ' . $sequence->getQuotedName($this) . return 'ALTER SEQUENCE ' . $sequence->getQuotedName($this) .
' INCREMENT BY ' . $sequence->getAllocationSize() ' INCREMENT BY ' . $sequence->getAllocationSize()
...@@ -206,9 +206,11 @@ class OraclePlatform extends AbstractPlatform ...@@ -206,9 +206,11 @@ class OraclePlatform extends AbstractPlatform
/** /**
* Cache definition for sequences * Cache definition for sequences
* *
* @param Sequence $sequence
*
* @return string * @return string
*/ */
private function getSequenceCacheSQL(\Doctrine\DBAL\Schema\Sequence $sequence) private function getSequenceCacheSQL(Sequence $sequence)
{ {
if ($sequence->getCache() === 0) { if ($sequence->getCache() === 0) {
return ' NOCACHE'; return ' NOCACHE';
......
...@@ -22,6 +22,7 @@ namespace Doctrine\DBAL\Platforms; ...@@ -22,6 +22,7 @@ namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\ColumnDiff; use Doctrine\DBAL\Schema\ColumnDiff;
use Doctrine\DBAL\Schema\Index; use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\TableDiff; use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\Types\BinaryType; use Doctrine\DBAL\Types\BinaryType;
use Doctrine\DBAL\Types\BlobType; use Doctrine\DBAL\Types\BlobType;
...@@ -604,7 +605,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -604,7 +605,7 @@ class PostgreSqlPlatform extends AbstractPlatform
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function getCreateSequenceSQL(\Doctrine\DBAL\Schema\Sequence $sequence) public function getCreateSequenceSQL(Sequence $sequence)
{ {
return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) . return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) .
' INCREMENT BY ' . $sequence->getAllocationSize() . ' INCREMENT BY ' . $sequence->getAllocationSize() .
...@@ -616,7 +617,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -616,7 +617,7 @@ class PostgreSqlPlatform extends AbstractPlatform
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function getAlterSequenceSQL(\Doctrine\DBAL\Schema\Sequence $sequence) public function getAlterSequenceSQL(Sequence $sequence)
{ {
return 'ALTER SEQUENCE ' . $sequence->getQuotedName($this) . return 'ALTER SEQUENCE ' . $sequence->getQuotedName($this) .
' INCREMENT BY ' . $sequence->getAllocationSize() . ' INCREMENT BY ' . $sequence->getAllocationSize() .
...@@ -626,9 +627,11 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -626,9 +627,11 @@ class PostgreSqlPlatform extends AbstractPlatform
/** /**
* Cache definition for sequences * Cache definition for sequences
* *
* @param Sequence $sequence
*
* @return string * @return string
*/ */
private function getSequenceCacheSQL(\Doctrine\DBAL\Schema\Sequence $sequence) private function getSequenceCacheSQL(Sequence $sequence)
{ {
if ($sequence->getCache() > 1) { if ($sequence->getCache() > 1) {
return ' CACHE ' . $sequence->getCache(); return ' CACHE ' . $sequence->getCache();
...@@ -642,7 +645,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -642,7 +645,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/ */
public function getDropSequenceSQL($sequence) public function getDropSequenceSQL($sequence)
{ {
if ($sequence instanceof \Doctrine\DBAL\Schema\Sequence) { if ($sequence instanceof Sequence) {
$sequence = $sequence->getQuotedName($this); $sequence = $sequence->getQuotedName($this);
} }
return 'DROP SEQUENCE ' . $sequence . ' CASCADE'; return 'DROP SEQUENCE ' . $sequence . ' CASCADE';
......
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