Feature\Domain\RecipeContext::asFirstStepIAddPrepareHighballGlassWithMlCapacity PHP Method

asFirstStepIAddPrepareHighballGlassWithMlCapacity() public method

    public function asFirstStepIAddPrepareHighballGlassWithMlCapacity($name, $capacity)
    {
        $command = new AddRecipeStepCommand();
        $command->slug = $this->slugGenerator->generateFrom($this->currentRecipeName);
        $command->type = RecipeActions::PREPARE_GLASS;
        $command->name = $name;
        $command->capacity = (int) $capacity;
        $this->commandBus->handle($command);
    }