Skip to content

Commit

Permalink
Improve column schema classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 15, 2024
1 parent 1364341 commit 75940d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Column/SequenceColumnSchemaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
interface SequenceColumnSchemaInterface extends ColumnSchemaInterface
{
/**
* @return string|null name of an associated sequence if column is auto incremental.
* Returns name of an associated sequence if column is auto incremental.
*
* @psalm-mutation-free
*/
public function getSequenceName(): string|null;

Expand Down
3 changes: 3 additions & 0 deletions src/Column/SequenceColumnSchemaTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ trait SequenceColumnSchemaTrait
*/
private string|null $sequenceName = null;

/**
* @psalm-mutation-free
*/
public function getSequenceName(): string|null
{
return $this->sequenceName;
Expand Down

0 comments on commit 75940d4

Please sign in to comment.