protected function resolveOperationName(string $operation, bool $multiple = true): string
    {
        if (! $multiple) {
            return $operation;
        } elseif (\in_array($operation, ['fill', 'add'])) {
            return 'attach';
        }

        return 'detach';
    }
protected function resolveOperationName(string $operation, bool $multiple = true): string
    {
        if (! $multiple) {
            return $operation;
        } elseif (\in_array($operation, ['fill', 'add'])) {
            return 'attach';
        }

        return 'detach';
    }
protected function resolveOperationName ( string $ operation , bool $ multiple = true ) : string { if ( ! $ multiple ) { return $ operation ; } elseif ( \ in_array ( $ operation , [ 'fill' , 'add' ] ) ) { return 'attach' ; } return 'detach' ; }
Dynamically resolve operation name especially when multiple
operation was used.

@param  string  $operation
@param  bool    $multiple

@return string
Dynamically resolve operation name especially when multiple operation was used .