Skip to content

Commit fb147f6

Browse files
committed
Add get and set resettables
1 parent 4348ab6 commit fb147f6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

packages/container/src/GenericContainer.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,4 +728,16 @@ public function reset(): self
728728

729729
return $this;
730730
}
731+
732+
public function getResettables(): array
733+
{
734+
return $this->resettables->getArrayCopy();
735+
}
736+
737+
public function setResettables(array $resettables): self
738+
{
739+
$this->resettables = new ArrayIterator($resettables);
740+
741+
return $this;
742+
}
731743
}

0 commit comments

Comments
 (0)