acc-create-state - PHP 8.5 State Pattern Generator
Generates State pattern infrastructure for PHP 8.5 with state interfaces, concrete states, and factories
Tags
Updated: 2026-03-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Generate state interface
- Generate concrete states
- Generate state factory
- Generate exception classes
- Generate unit tests
- Update entity methods
Inputs
- State machine requirements
- Domain bounded context name
- State definitions and transitions
Outputs
- State interface class
- Abstract state class
- Concrete state classes
- State factory class
- Exception classes
- Unit test files
Requirements
- PHP 8.5 runtime environment
- Domain-driven design project structure
