Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

refactor: chain aware with interface #327

Merged
merged 1 commit into from
Jun 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Chain/ChainAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

interface ChainAwareInterface
{
public function setChain(Chain $chain): void;
public function setChain(ChainInterface $chain): void;
}
4 changes: 2 additions & 2 deletions src/Chain/ChainAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait ChainAwareTrait
{
private Chain $chain;
private ChainInterface $chain;

public function setChain(Chain $chain): void
public function setChain(ChainInterface $chain): void
{
$this->chain = $chain;
}
Expand Down