Feature\Domain\RecipeContext::iAddStepPourMlOfIntoGlass PHP Method

iAddStepPourMlOfIntoGlass() public method

public iAddStepPourMlOfIntoGlass ( $capacity, $name )
    public function iAddStepPourMlOfIntoGlass($capacity, $name)
    {
        try {
            $command = new AddRecipeStepCommand();
            $command->slug = $this->slugGenerator->generateFrom($this->currentRecipeName);
            $command->type = RecipeActions::POUR_INTO_GLASS;
            $command->name = $name;
            $command->capacity = (int) $capacity;
            $this->commandBus->handle($command);
        } catch (Exception $exception) {
            $this->lastException = $exception;
        }
    }