Closed raoulclais closed 7 years ago
If I want to get a fragment inside a step argument transformation I need to do this :
/** * @Transform :banana */ public function smashBanana(string $banana): SmashedBanana { $numberOfPieces = $this->scenarioState->getStateFragment('numberOfPieces'); return new SmashedBanana($banana, $numberOfPieces); }
Would it be possible to do this also ?
/** * @Transform :banana * * @ScenarioStateArgument("numberOfPieces") */ public function smashBanana(string $banana, int $numberOfPieces): SmashedBanana { return new SmashedBanana($banana, $numberOfPieces); }
If I want to get a fragment inside a step argument transformation I need to do this :
Would it be possible to do this also ?