Skip to content
Snippets Groups Projects
Commit 45fafe15 authored by Daniel Kurowski's avatar Daniel Kurowski
Browse files

remove deprecated StatefulImplementation scaffolding capability

parent 2c763ba7
1 merge request!30Draft: 0.8 major release
Pipeline #50572 passed
<?php
declare(strict_types=1);
namespace Grifart\Stateful\Bridge\Scaffolder;
use Grifart\ClassScaffolder\Capabilities\Capability;
use Grifart\ClassScaffolder\ClassInNamespace;
use Grifart\ClassScaffolder\Definition\ClassDefinition;
/** @deprecated use {@see ImplementedStateful} instead */
final class StatefulImplementation implements Capability
{
private ImplementedStateful $replacement;
public function __construct()
{
$this->replacement = new ImplementedStateful();
}
public function applyTo(
ClassDefinition $definition,
ClassInNamespace $draft,
?ClassInNamespace $current,
): void
{
$this->replacement->applyTo($definition, $draft, $current);
}
}
......@@ -10,8 +10,3 @@ function implementedStateful(): ImplementedStateful {
function implementedStatefulAndInterface(): ImplementedStatefulAndInterface {
return new ImplementedStatefulAndInterface();
}
/** @deprecated */
function statefulImplementation(): StatefulImplementation {
return new StatefulImplementation();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment