pixelfederation/swoole-bundle

View on GitHub
src/Bridge/Symfony/Container/SimpleResetter.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace K911\Swoole\Bridge\Symfony\Container;

final class SimpleResetter implements Resetter
{
    public function __construct(private string $resetFn)
    {
    }

    public function reset(object $service): void
    {
        $service->{$this->resetFn}();
    }
}