generated from Potter/Template
add unset method
This commit is contained in:
@@ -22,4 +22,9 @@ trait ContainerTrait
|
|||||||
{
|
{
|
||||||
return $this->storage[$key] = $value;
|
return $this->storage[$key] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final protected function unset(string $key): null
|
||||||
|
{
|
||||||
|
unset($this->storage[$key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user