public function setConfirmation(array $confirmation)
    {
        if (! array_key_exists('text', $confirmation)) {
            throw InvalidConfirmationHash::missingTextField();
        }

        $this->confirmation = $confirmation;

        return $this;
    }
public function setConfirmation(array $confirmation)
    {
        if (! array_key_exists('text', $confirmation)) {
            throw InvalidConfirmationHash::missingTextField();
        }

        $this->confirmation = $confirmation;

        return $this;
    }
public function setConfirmation ( array $ confirmation ) { if ( ! array_key_exists ( 'text' , $ confirmation ) ) { throw InvalidConfirmationHash :: missingTextField ( ) ; } $ this -> confirmation = $ confirmation ; return $ this ; }
Sets the confirmation hash for the action.

@param array $confirmation

@return \Spatie\SlashCommand\AttachmentAction
@throws \Spatie\SlashCommand\Exceptions\InvalidConfirmationHash
Sets the confirmation hash for the action .