Skip to content

Commit

Permalink
Improve column schema classes (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored Nov 16, 2024
1 parent 7054c55 commit 1fe0de5
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
*/
protected string|null $sequenceName = null;

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

0 comments on commit 1fe0de5

Please sign in to comment.